Files
Termix/src/ui/components/separator.tsx
T

27 lines
636 B
TypeScript
Raw Normal View History

2025-09-12 14:42:00 -05:00
import * as React from "react";
2026-05-11 01:23:11 -05:00
import { Separator as SeparatorPrimitive } from "radix-ui";
2025-08-07 02:20:27 -05:00
2025-09-12 14:42:00 -05:00
import { cn } from "@/lib/utils";
2025-08-07 02:20:27 -05:00
function Separator({
className,
orientation = "horizontal",
decorative = true,
...props
}: React.ComponentProps<typeof SeparatorPrimitive.Root>) {
return (
<SeparatorPrimitive.Root
data-slot="separator"
decorative={decorative}
orientation={orientation}
className={cn(
2026-05-11 01:23:11 -05:00
"shrink-0 bg-border data-horizontal:h-px data-horizontal:w-full data-vertical:w-px data-vertical:self-stretch",
2025-09-12 14:42:00 -05:00
className,
2025-08-07 02:20:27 -05:00
)}
{...props}
/>
2025-09-12 14:42:00 -05:00
);
2025-08-07 02:20:27 -05:00
}
2025-09-12 14:42:00 -05:00
export { Separator };