UNPKG

@stratakit/bricks

Version:

Small, modular components for StrataKit

22 lines (21 loc) 559 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 { useInit } from "./~utils.useInit.js"; const Label = forwardRef((props, forwardedRef) => { useInit(); return /* @__PURE__ */ jsx( Role.label, { ...props, className: cx("\u{1F95D}Label", props.className), ref: forwardedRef } ); }); DEV: Label.displayName = "Label"; var Label_default = Label; export { Label_default as default };