2025-05-19 16:39:12 +00:00
|
|
|
"use client";
|
2025-05-05 17:11:44 +00:00
|
|
|
|
2025-05-19 16:39:12 +00:00
|
|
|
import * as SeparatorPrimitive from "@radix-ui/react-separator";
|
|
|
|
|
import * as React from "react";
|
2025-05-05 17:11:44 +00:00
|
|
|
|
2025-05-19 16:39:12 +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-05-19 16:39:12 +00:00
|
|
|
data-slot='separator-root'
|
2025-05-05 17:11:44 +00:00
|
|
|
decorative={decorative}
|
|
|
|
|
orientation={orientation}
|
|
|
|
|
className={cn(
|
2025-05-19 16:39:12 +00:00
|
|
|
"shrink-0 bg-border",
|
|
|
|
|
orientation === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]",
|
2025-05-05 17:11:44 +00:00
|
|
|
className
|
|
|
|
|
)}
|
|
|
|
|
{...props}
|
|
|
|
|
/>
|
2025-05-19 16:39:12 +00:00
|
|
|
);
|
2025-05-05 17:11:44 +00:00
|
|
|
}
|
|
|
|
|
|
2025-05-19 16:39:12 +00:00
|
|
|
export { Separator };
|