"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="https://nice2dev.com/schemas/component-doc-v1.json",o="NiceToggle",t="Toggle",a="1.0.0",s="stable",n="editors",c="boolean",i="Boolean switch/toggle control styled as an iOS-like switch.",l="1.0.0",r=["web","mobile","desktop"],d=["toggle","switch","boolean","on-off"],g=[{name:"label",type:"ReactNode",required:!1,description:"Toggle label."},{name:"checked",type:"boolean",required:!1,default:"false",description:"Controlled on/off state."},{name:"disabled",type:"boolean",required:!1,description:"Disables the toggle."},{name:"size",type:"NiceSize",required:!1,default:"'md'",description:"Visual size."},{name:"name",type:"string",required:!1,description:"HTML name."}],p=[{name:"onChange",parameters:[{name:"checked",type:"boolean"}],description:"Called on toggle."}],m=[{name:"--nice-toggle-track-bg",default:"var(--nice-border-color)",description:"Track background (off)"},{name:"--nice-toggle-active-bg",default:"var(--nice-primary)",description:"Track background (on)"}],b=[{title:"Basic Toggle",code:`<NiceToggle
  label="Enable notifications"
  checked={enabled}
  onChange={setEnabled}
/>`,language:"tsx"}],u=[{name:"NiceCheckbox",relationship:"alternative"}],f={$schema:e,name:o,displayName:t,version:a,status:s,category:n,subcategory:c,package:"@nicetoDev/ui",description:i,since:l,platforms:r,keywords:d,props:g,events:p,cssVariables:m,examples:b,related:u};exports.$schema=e;exports.category=n;exports.cssVariables=m;exports.default=f;exports.description=i;exports.displayName=t;exports.events=p;exports.examples=b;exports.keywords=d;exports.name=o;exports.platforms=r;exports.props=g;exports.related=u;exports.since=l;exports.status=s;exports.subcategory=c;exports.version=a;
