UNPKG

@stratakit/bricks

Version:

Small, modular components for StrataKit

23 lines (22 loc) 635 B
import { jsx } from "react/jsx-runtime"; import { Role } from "@ariakit/react/role"; import { forwardRef } from "@stratakit/foundations/secret-internals"; import cx from "classnames"; const Skeleton = forwardRef((props, forwardedRef) => { const { variant = "text", size = "medium", ...rest } = props; return /* @__PURE__ */ jsx( Role.div, { ...rest, ref: forwardedRef, className: cx("\u{1F95D}-skeleton", props.className), "data-kiwi-variant": variant, "data-kiwi-size": size, "aria-hidden": true } ); }); var Skeleton_default = Skeleton; export { Skeleton_default as default };