import{a as e,n as t}from"./chunk-BneVvdWh.js";import{t as n}from"./react-C7IZe2D1.js";import{t as r}from"./jsx-runtime-C2wGStra.js";import{i,n as a,r as o,t as s}from"./SwitchThumb-BYdJwzo1.js";var c,l,u,d=t((()=>{c=e(n(),1),i(),a(),l=r(),u=(0,c.forwardRef)(function(e,t){return(0,l.jsx)(o,{ref:t,...e,children:(0,l.jsx)(s,{})})});try{u.displayName=`Switch`,u.__docgenInfo={description:``,displayName:`Switch`,props:{checked:{defaultValue:null,description:`The state of the switch.
Use this for a controlled switch.
@example const [checked, setChecked] = useState(initialChecked);
<Switch
  checked={checked}
  onCheckedChange={setChecked}
/>`,name:`checked`,required:!1,type:{name:`enum`,value:[{value:`false`},{value:`true`}]}},defaultChecked:{defaultValue:null,description:`The default state of the switch.
Use for an uncontrolled switch.
@example <Switch
  defaultChecked={mySetting}
  onCheckedChange={updateMySetting}
/>`,name:`defaultChecked`,required:!1,type:{name:`enum`,value:[{value:`false`},{value:`true`}]}},onCheckedChange:{defaultValue:null,description:`Callback for when the switch state changes.`,name:`onCheckedChange`,required:!1,type:{name:`enum`,value:[{value:`(checked: boolean) => void`}]}},id:{defaultValue:null,description:`The unique identifier for the switch element.`,name:`id`,required:!1,type:{name:`enum`,value:[{value:`string`}]}},disabled:{defaultValue:null,description:`Disables interactions with the switch.`,name:`disabled`,required:!1,type:{name:`enum`,value:[{value:`false`},{value:`true`}]}},"aria-label":{defaultValue:null,description:`Accessible label for the switch.`,name:`aria-label`,required:!1,type:{name:`enum`,value:[{value:`string`}]}},"aria-labelledby":{defaultValue:null,description:`ID of the element that labels the switch.`,name:`aria-labelledby`,required:!1,type:{name:`enum`,value:[{value:`string`}]}},"aria-describedby":{defaultValue:null,description:`ID of the element that describes the switch.`,name:`aria-describedby`,required:!1,type:{name:`enum`,value:[{value:`string`}]}},"aria-invalid":{defaultValue:null,description:`Indicates whether the switch value is invalid.`,name:`aria-invalid`,required:!1,type:{name:`enum`,value:[{value:`false`},{value:`true`}]}},"aria-errormessage":{defaultValue:null,description:`ID of the element that describes the error, if any.`,name:`aria-errormessage`,required:!1,type:{name:`enum`,value:[{value:`string`}]}},dataset:{defaultValue:null,description:``,name:`dataset`,required:!1,type:{name:`enum`,value:[{value:`Dataset`}]}}}}}catch{}}));export{d as n,u as t};