@stratakit/bricks
Version:
Small, modular components for StrataKit
23 lines (22 loc) • 668 B
JavaScript
import { jsx } from "react/jsx-runtime";
import { Role } from "@ariakit/react/role";
import { Separator } from "@ariakit/react/separator";
import { forwardRef } from "@stratakit/foundations/secret-internals";
import cx from "classnames";
const Divider = forwardRef((props, forwardedRef) => {
const { presentational, ...rest } = props;
const Comp = presentational ? Role : Separator;
return /* @__PURE__ */ jsx(
Comp,
{
...rest,
className: cx("\u{1F95D}-divider", props.className),
"data-kiwi-orientation": props.orientation,
ref: forwardedRef
}
);
});
var Divider_default = Divider;
export {
Divider_default as default
};