braid-design-system
Version:
Themeable design system for the SEEK Group
21 lines (20 loc) • 479 B
JavaScript
import { jsx } from "react/jsx-runtime";
import { useFallbackState } from "../../playroom/playroomState.mjs";
import { Checkbox as Checkbox$1 } from "./Checkbox.mjs";
const Checkbox = ({
stateName,
checked,
onChange,
...restProps
}) => {
const [state, handleChange] = useFallbackState(
stateName,
checked,
onChange,
false
);
return /* @__PURE__ */ jsx(Checkbox$1, { checked: state, onChange: handleChange, ...restProps });
};
export {
Checkbox
};