import{C as t,aC as r,R as e,D as o,ay as d,aI as m}from"./iframe-DvhcA1iZ.js";import"./preload-helper-PPVm8Dsz.js";const E={title:"Components/Form/Checkbox",component:t,tags:["autodocs","form"],argTypes:{color:{control:{type:"color"}},defaultChecked:{control:{type:"boolean"}},checked:{control:{type:"boolean"}},disabled:{control:{type:"boolean"}},readOnly:{control:{type:"boolean"}},error:{control:{type:"boolean"}},onChange:{action:"onChange"}},args:{children:"Check me"}},h={},u=m(t,{"--color":"$colors$green1"}),i={render:l=>{const[n,a]=r.useState(!1),c=r.useCallback(()=>{a(s=>!s)},[]);return e.createElement(e.Fragment,null,e.createElement(o,null,"Red (deprecated prop):"),e.createElement(t,{...l,color:"red"}),e.createElement(o,null,"Blue (css):"),e.createElement(t,{...l,css:{"--color":"$blue5"}}),e.createElement(o,null,"Green (composed):"),e.createElement(u,{...d(l,["ref"])}),e.createElement(o,null,"Always controlled: (checked: ",String(n),")"),e.createElement(t,{...l,checked:n,onChange:c}),e.createElement(o,null,"Always disabled:"),e.createElement(t,{...l,disabled:!0}),e.createElement(o,null,"Always read-only:"),e.createElement(t,{...l,readOnly:!0}))},args:{defaultChecked:!0}},b=["Primary","AllAtOnce"];export{i as AllAtOnce,h as Primary,b as __namedExportsOrder,E as default};
