@stratakit/bricks
Version:
Small, modular components for StrataKit
23 lines (22 loc) • 626 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";
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
}
);
});
var Badge_default = Badge;
export {
Badge_default as default
};