@arolariu/components
Version:
🎨 70+ beautiful, accessible React components built on Radix UI. TypeScript-first, tree-shakeable, SSR-ready. Perfect for modern web apps, design systems & rapid prototyping. Zero config, maximum flexibility! ⚡
16 lines (15 loc) • 695 B
JavaScript
"use client";
import { jsx } from "react/jsx-runtime";
import { Root } from "@radix-ui/react-separator";
import { forwardRef } from "react";
import { cn } from "../../lib/utilities.js";
const Separator = /*#__PURE__*/ forwardRef(({ className, orientation = "horizontal", decorative = true, ...props }, ref)=>/*#__PURE__*/ jsx(Root, {
ref: ref,
decorative: decorative,
orientation: orientation,
className: cn("shrink-0 bg-neutral-200 dark:bg-neutral-800", "horizontal" === orientation ? "h-[1px] w-full" : "h-full w-[1px]", className),
...props
}));
Separator.displayName = Root.displayName;
export { Separator };
//# sourceMappingURL=separator.js.map