Files
shadcn-ui/apps/v4/examples/radix/ui/separator.tsx
shadcn 62aef1117f fix
2026-01-08 21:27:27 +04:00

28 lines
714 B
TypeScript

"use client"
import * as React from "react"
import { cn } from "@/examples/radix/lib/utils"
import { Separator as SeparatorPrimitive } from "radix-ui"
function Separator({
className,
orientation = "horizontal",
decorative = true,
...props
}: React.ComponentProps<typeof SeparatorPrimitive.Root>) {
return (
<SeparatorPrimitive.Root
data-slot="separator"
decorative={decorative}
orientation={orientation}
className={cn(
"bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:w-px data-[orientation=vertical]:self-stretch",
className
)}
{...props}
/>
)
}
export { Separator }