UNPKG

@voilajsx/uikit

Version:

Cross-platform React components with beautiful themes and OKLCH color science

26 lines (25 loc) 697 B
import { jsx } from "react/jsx-runtime"; import { forwardRef } from "react"; import * as SeparatorPrimitive from "@radix-ui/react-separator"; import { cn } from "./utils.js"; const Separator = forwardRef( ({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ jsx( SeparatorPrimitive.Root, { ref, decorative, orientation, className: cn( "shrink-0 bg-border", orientation === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]", className ), ...props } ) ); Separator.displayName = SeparatorPrimitive.Root.displayName; export { Separator }; //# sourceMappingURL=separator.js.map