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

27 lines
699 B
TypeScript
Raw Normal View History

2025-10-14 13:49:25 +00:00
import * as React from "react"
import * as SeparatorPrimitive from "@radix-ui/react-separator"
2025-05-05 17:11:44 +00:00
2025-10-14 13:49:25 +00:00
import { cn } from "@repo/shadcn-ui/lib/utils"
2025-05-05 17:11:44 +00:00
function Separator({
className,
orientation = "horizontal",
decorative = true,
...props
}: React.ComponentProps<typeof SeparatorPrimitive.Root>) {
return (
<SeparatorPrimitive.Root
2025-10-14 13:49:25 +00:00
data-slot="separator"
2025-05-05 17:11:44 +00:00
decorative={decorative}
orientation={orientation}
className={cn(
2025-10-14 13:49:25 +00:00
"bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",
2025-05-05 17:11:44 +00:00
className
)}
{...props}
/>
2025-10-14 13:49:25 +00:00
)
2025-05-05 17:11:44 +00:00
}
2025-10-14 13:49:25 +00:00
export { Separator }