UNPKG

@stratakit/bricks

Version:

Small, modular components for StrataKit

24 lines (23 loc) 592 B
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 }) }); }); export { Dot };