25 lines
680 B
JavaScript
25 lines
680 B
JavaScript
import { jsx } from "react/jsx-runtime";
|
|
import * as React from "react";
|
|
import * as SeparatorPrimitive from "@radix-ui/react-separator";
|
|
import { c as cn } from "./utils-DLCPGU0v.js";
|
|
const Separator = React.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 as S
|
|
};
|