Function
Separator
({
className,
orientation = "horizontal",
...props
}: SeparatorPrimitive.Props)
Source from the content-addressed store, hash-verified
| 5 | import { cn } from "@/lib/utils"; |
| 6 | |
| 7 | function Separator({ |
| 8 | className, |
| 9 | orientation = "horizontal", |
| 10 | ...props |
| 11 | }: SeparatorPrimitive.Props) { |
| 12 | return ( |
| 13 | <SeparatorPrimitive |
| 14 | data-slot="separator" |
| 15 | orientation={orientation} |
| 16 | className={cn( |
| 17 | "bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:w-px data-[orientation=vertical]:self-stretch", |
| 18 | className |
| 19 | )} |
| 20 | {...props} |
| 21 | /> |
| 22 | ); |
| 23 | } |
| 24 | |
| 25 | export { Separator }; |
Callers
nothing calls this directly
Tested by
no test coverage detected