UNPKG

@stratakit/bricks

Version:

Small, modular components for StrataKit

22 lines (21 loc) 634 B
import { jsx } from "react/jsx-runtime"; import { Checkbox as AkCheckbox } from "@ariakit/react/checkbox"; import { forwardRef } from "@stratakit/foundations/secret-internals"; import cx from "classnames"; import { useFieldControlType } from "./Field.internal.js"; const Checkbox = forwardRef((props, forwardedRef) => { useFieldControlType("checkable"); return /* @__PURE__ */ jsx( AkCheckbox, { accessibleWhenDisabled: true, ...props, className: cx("\u{1F95D}-checkbox", props.className), ref: forwardedRef } ); }); var Checkbox_default = Checkbox; export { Checkbox_default as default };