Files
shadcn-ui/apps/v4/examples/base/ui/separator.tsx
2026-02-03 16:41:44 +04:00

25 lines
558 B
TypeScript

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