mirror of
https://github.com/Sagit-chu/flvx.git
synced 2026-10-03 09:06:36 +08:00
28 lines
622 B
TypeScript
28 lines
622 B
TypeScript
import * as React from "react";
|
|
import * as SeparatorPrimitive from "@radix-ui/react-separator";
|
|
|
|
import { cn } from "@/lib/utils";
|
|
|
|
function Separator({
|
|
className,
|
|
decorative = true,
|
|
orientation = "horizontal",
|
|
...props
|
|
}: React.ComponentProps<typeof SeparatorPrimitive.Root>) {
|
|
return (
|
|
<SeparatorPrimitive.Root
|
|
className={cn(
|
|
"shrink-0 bg-divider",
|
|
orientation === "horizontal" ? "h-px w-full" : "h-full w-px",
|
|
className,
|
|
)}
|
|
data-slot="separator"
|
|
decorative={decorative}
|
|
orientation={orientation}
|
|
{...props}
|
|
/>
|
|
);
|
|
}
|
|
|
|
export { Separator };
|