SurfSense/surfsense_web/components/ui/separator.tsx

29 lines
669 B
TypeScript
Raw Normal View History

2026-02-17 12:47:39 +05:30
"use client";
2025-04-07 23:47:06 -07:00
2026-02-17 12:47:39 +05:30
import { Separator as SeparatorPrimitive } from "radix-ui";
2026-02-20 22:44:56 -08:00
import type * as React from "react";
2025-04-07 23:47:06 -07:00
2026-02-17 12:47:39 +05:30
import { cn } from "@/lib/utils";
2025-04-07 23:47:06 -07:00
function Separator({
2026-02-17 12:47:39 +05:30
className,
orientation = "horizontal",
decorative = true,
...props
2025-04-07 23:47:06 -07:00
}: React.ComponentProps<typeof SeparatorPrimitive.Root>) {
2026-02-17 12:47:39 +05:30
return (
<SeparatorPrimitive.Root
data-slot="separator"
decorative={decorative}
orientation={orientation}
className={cn(
"bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",
className
)}
{...props}
/>
);
2025-04-07 23:47:06 -07:00
}
2026-02-17 12:47:39 +05:30
export { Separator };