Function
Separator
({
className,
orientation = "horizontal",
...props
}: SeparatorPrimitive.Props)
Source from the content-addressed store, hash-verified
| 3 | import { cn } from "@/lib/utils"; |
| 4 | |
| 5 | function Separator({ |
| 6 | className, |
| 7 | orientation = "horizontal", |
| 8 | ...props |
| 9 | }: SeparatorPrimitive.Props) { |
| 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 { Separator }; |
Callers
nothing calls this directly
Tested by
no test coverage detected