UNPKG

@stratakit/bricks

Version:

Small, modular components for StrataKit

24 lines (23 loc) 660 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 Badge = forwardRef((props, forwardedRef) => { const { tone = "neutral", variant = "solid", label, ...rest } = props; return /* @__PURE__ */ jsx( Role.span, { ...rest, "data-kiwi-tone": tone, "data-kiwi-variant": variant, className: cx("\u{1F95D}-badge", props.className), ref: forwardedRef, children: label } ); }); DEV: Badge.displayName = "Badge"; var Badge_default = Badge; export { Badge_default as default };