@stratakit/bricks
Version:
Small, modular components for StrataKit
23 lines (22 loc) • 627 B
JavaScript
import { jsx } from "react/jsx-runtime";
import { Role } from "@ariakit/react/role";
import { forwardRef } from "@stratakit/foundations/secret-internals";
import cx from "classnames";
import VisuallyHidden from "./VisuallyHidden.js";
const Dot = forwardRef((props, forwardedRef) => {
const { children, ...rest } = props;
return /* @__PURE__ */ jsx(
Role.span,
{
"aria-hidden": "true",
...rest,
className: cx("\u{1F95D}-dot", props.className),
ref: forwardedRef,
children: /* @__PURE__ */ jsx(VisuallyHidden, { children })
}
);
});
DEV: Dot.displayName = "Dot";
export {
Dot
};