neos-blocks
Version:
🌟 A simple ui-blocks library built on components from https://ui.shadcn.com/docs/components
25 lines (24 loc) • 596 B
JavaScript
import * as o from "react";
import * as a from "@radix-ui/react-separator";
import { cn as p } from "./index.es5.js";
const i = o.forwardRef(
({ className: e, orientation: r = "horizontal", decorative: t = !0, ...m }, l) => /* @__PURE__ */ o.createElement(
a.Root,
{
ref: l,
decorative: t,
orientation: r,
className: p(
"shrink-0 bg-border",
r === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]",
e
),
...m
}
)
);
i.displayName = a.Root.displayName;
export {
i as Separator
};
//# sourceMappingURL=index.es8.js.map