FactuGES_ERP/packages/shadcn-ui/src/components/separator.tsx

26 lines
661 B
TypeScript
Raw Normal View History

2026-03-31 15:56:41 +00:00
import { cn } from "@repo/shadcn-ui/lib/utils";
import { Separator as SeparatorPrimitive } from "radix-ui";
import type * as React from "react";
2025-05-05 17:11:44 +00:00
function Separator({
className,
orientation = "horizontal",
decorative = true,
...props
}: React.ComponentProps<typeof SeparatorPrimitive.Root>) {
return (
<SeparatorPrimitive.Root
className={cn(
2026-03-31 15:56:41 +00:00
"shrink-0 bg-border data-horizontal:h-px data-horizontal:w-full data-vertical:w-px data-vertical:self-stretch h-[1px]",
2025-05-05 17:11:44 +00:00
className
)}
2026-03-31 15:56:41 +00:00
data-slot="separator"
decorative={decorative}
orientation={orientation}
2025-05-05 17:11:44 +00:00
{...props}
/>
2026-03-31 15:56:41 +00:00
);
2025-05-05 17:11:44 +00:00
}
2026-03-31 15:56:41 +00:00
export { Separator };