UNPKG

braid-design-system

Version:
21 lines (20 loc) 479 B
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 };