mirror of
https://github.com/shadcn-ui/ui.git
synced 2026-06-28 15:14:12 +00:00
25 lines
614 B
TypeScript
25 lines
614 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-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:w-px data-[orientation=vertical]:self-stretch",
|
|
className
|
|
)}
|
|
{...props}
|
|
/>
|
|
)
|
|
}
|
|
|
|
export { Separator }
|