| 1 | import { Separator as SeparatorPrimitive } from "@base-ui/react/separator"; |
| 2 | import type React from |
| 3 | import { cn } |
| 4 | |
| 5 | export function Separator({ |
| 6 | className, |
| 7 | orientation = "horizontal" |
| 8 | ...props |
| 9 | }: SeparatorPrimitive. |
| 10 | return ( |
| 11 | <SeparatorPrimitive |
| 12 | className={cn( |
| 13 | "shrink-0 bg-border data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:w-px data-[orientation=vertical]:not-[[class^='h-']]:not-[[class*='_h-']]:self-stretch", |
| 14 | className, |
| 15 | )} |
| 16 | data-slot="separator" |
| 17 | orientation={orientation} |
| 18 | {...props} |
| 19 | /> |
| 20 | ); |
| 21 | } |
| 22 | |
| 23 | export { SeparatorPrimitive }; |