20 lines
429 B
TypeScript
20 lines
429 B
TypeScript
import { cn } from "@/lib/utils";
|
|
|
|
export function Separator({
|
|
className,
|
|
orientation = "horizontal",
|
|
...props
|
|
}: React.HTMLAttributes<HTMLDivElement> & { orientation?: "horizontal" | "vertical" }) {
|
|
return (
|
|
<div
|
|
role="separator"
|
|
className={cn(
|
|
"shrink-0 bg-border",
|
|
orientation === "horizontal" ? "h-px w-full" : "h-full w-px",
|
|
className,
|
|
)}
|
|
{...props}
|
|
/>
|
|
);
|
|
}
|