@cerberus-design/react
Version:
The Cerberus Design React component library.
22 lines (20 loc) • 731 B
JavaScript
import {
CheckboxParts
} from "./chunk-GFFIJGQC.js";
import {
Show
} from "./chunk-NUXMADXV.js";
import {
useCerberusContext
} from "./chunk-GITT5645.js";
// src/components/checkbox/checkbox-icon.tsx
import { jsx } from "react/jsx-runtime";
function CheckboxIcon(props) {
const { icons } = useCerberusContext();
const { checkbox: CheckIcon, indeterminate: IndeterminateIcon } = icons;
return /* @__PURE__ */ jsx(CheckboxParts.Indicator, { indeterminate: props.indeterminate, children: /* @__PURE__ */ jsx(Show, { when: props.indeterminate, fallback: /* @__PURE__ */ jsx(CheckIcon, {}), children: /* @__PURE__ */ jsx(IndeterminateIcon, {}) }) });
}
export {
CheckboxIcon
};
//# sourceMappingURL=chunk-HYEFRC5Z.js.map