[{"data":1,"prerenderedAt":1205},["ShallowReactive",2],{"locale-alternates":3,"docs-nav-en":124,"api-none":352,"page-en-\u002Fcomponents\u002Fbb-switch":353,"pt-showcase-BbSwitch":903},{"\u002Fit\u002Fcomponenti\u002Fbb-accordion":4,"\u002Fen\u002Fcomponents\u002Fbb-accordion":5,"\u002Fit\u002Fcomponenti\u002Fbb-alert":6,"\u002Fen\u002Fcomponents\u002Fbb-alert":7,"\u002Fit\u002Fcomponenti\u002Fbb-asterisk":8,"\u002Fen\u002Fcomponents\u002Fbb-asterisk":9,"\u002Fit\u002Fcomponenti\u002Fbb-avatar":10,"\u002Fen\u002Fcomponents\u002Fbb-avatar":11,"\u002Fit\u002Fcomponenti\u002Fbb-badge":12,"\u002Fen\u002Fcomponents\u002Fbb-badge":13,"\u002Fit\u002Fcomponenti\u002Fbb-base-button":14,"\u002Fen\u002Fcomponents\u002Fbb-base-button":15,"\u002Fit\u002Fcomponenti\u002Fbb-breadcrumbs":16,"\u002Fen\u002Fcomponents\u002Fbb-breadcrumbs":17,"\u002Fit\u002Fcomponenti\u002Fbb-button":18,"\u002Fen\u002Fcomponents\u002Fbb-button":19,"\u002Fit\u002Fcomponenti\u002Fbb-checkbox":20,"\u002Fen\u002Fcomponents\u002Fbb-checkbox":21,"\u002Fit\u002Fcomponenti\u002Fbb-checkbox-group":22,"\u002Fen\u002Fcomponents\u002Fbb-checkbox-group":23,"\u002Fit\u002Fcomponenti\u002Fbb-collapsible":24,"\u002Fen\u002Fcomponents\u002Fbb-collapsible":25,"\u002Fit\u002Fcomponenti\u002Fbb-color-input":26,"\u002Fen\u002Fcomponents\u002Fbb-color-input":27,"\u002Fit\u002Fcomponenti\u002Fbb-color-palette":28,"\u002Fen\u002Fcomponents\u002Fbb-color-palette":29,"\u002Fit\u002Fcomponenti\u002Fbb-confirm":30,"\u002Fen\u002Fcomponents\u002Fbb-confirm":31,"\u002Fit\u002Fcomponenti\u002Fbb-date-picker":32,"\u002Fen\u002Fcomponents\u002Fbb-date-picker":33,"\u002Fit\u002Fcomponenti\u002Fbb-date-picker-input":34,"\u002Fen\u002Fcomponents\u002Fbb-date-picker-input":35,"\u002Fit\u002Fcomponenti\u002Fbb-dialog":36,"\u002Fen\u002Fcomponents\u002Fbb-dialog":37,"\u002Fit\u002Fcomponenti\u002Fbb-dropdown":38,"\u002Fen\u002Fcomponents\u002Fbb-dropdown":39,"\u002Fit\u002Fcomponenti\u002Fbb-dropdown-button":40,"\u002Fen\u002Fcomponents\u002Fbb-dropdown-button":41,"\u002Fit\u002Fcomponenti\u002Fbb-dropzone":42,"\u002Fen\u002Fcomponents\u002Fbb-dropzone":43,"\u002Fit\u002Fcomponenti\u002Fbb-form":44,"\u002Fen\u002Fcomponents\u002Fbb-form":45,"\u002Fit\u002Fcomponenti\u002Fbb-icon":46,"\u002Fen\u002Fcomponents\u002Fbb-icon":47,"\u002Fit\u002Fcomponenti\u002Fbb-indicator":48,"\u002Fen\u002Fcomponents\u002Fbb-indicator":49,"\u002Fit\u002Fcomponenti\u002Fbb-number-input":50,"\u002Fen\u002Fcomponents\u002Fbb-number-input":51,"\u002Fit\u002Fcomponenti\u002Fbb-off-canvas":52,"\u002Fen\u002Fcomponents\u002Fbb-off-canvas":53,"\u002Fit\u002Fcomponenti\u002Fbb-pagination":54,"\u002Fen\u002Fcomponents\u002Fbb-pagination":55,"\u002Fit\u002Fcomponenti\u002Fbb-popover":56,"\u002Fen\u002Fcomponents\u002Fbb-popover":57,"\u002Fit\u002Fcomponenti\u002Fbb-progress":58,"\u002Fen\u002Fcomponents\u002Fbb-progress":59,"\u002Fit\u002Fcomponenti\u002Fbb-radio":60,"\u002Fen\u002Fcomponents\u002Fbb-radio":61,"\u002Fit\u002Fcomponenti\u002Fbb-radio-group":62,"\u002Fen\u002Fcomponents\u002Fbb-radio-group":63,"\u002Fit\u002Fcomponenti\u002Fbb-rating":64,"\u002Fen\u002Fcomponents\u002Fbb-rating":65,"\u002Fit\u002Fcomponenti\u002Fbb-select":66,"\u002Fen\u002Fcomponents\u002Fbb-select":67,"\u002Fit\u002Fcomponenti\u002Fbb-select-popover":68,"\u002Fen\u002Fcomponents\u002Fbb-select-popover":69,"\u002Fit\u002Fcomponenti\u002Fbb-slider":70,"\u002Fen\u002Fcomponents\u002Fbb-slider":71,"\u002Fit\u002Fcomponenti\u002Fbb-smooth-height":72,"\u002Fen\u002Fcomponents\u002Fbb-smooth-height":73,"\u002Fit\u002Fcomponenti\u002Fbb-spinner":74,"\u002Fen\u002Fcomponents\u002Fbb-spinner":75,"\u002Fit\u002Fcomponenti\u002Fbb-switch":76,"\u002Fen\u002Fcomponents\u002Fbb-switch":77,"\u002Fit\u002Fcomponenti\u002Fbb-switch-group":78,"\u002Fen\u002Fcomponents\u002Fbb-switch-group":79,"\u002Fit\u002Fcomponenti\u002Fbb-table":80,"\u002Fen\u002Fcomponents\u002Fbb-table":81,"\u002Fit\u002Fcomponenti\u002Fbb-tabs":82,"\u002Fen\u002Fcomponents\u002Fbb-tabs":83,"\u002Fit\u002Fcomponenti\u002Fbb-tag":84,"\u002Fen\u002Fcomponents\u002Fbb-tag":85,"\u002Fit\u002Fcomponenti\u002Fbb-text-input":86,"\u002Fen\u002Fcomponents\u002Fbb-text-input":87,"\u002Fit\u002Fcomponenti\u002Fbb-textarea":88,"\u002Fen\u002Fcomponents\u002Fbb-textarea":89,"\u002Fit\u002Fcomponenti\u002Fbb-time-picker":90,"\u002Fen\u002Fcomponents\u002Fbb-time-picker":91,"\u002Fit\u002Fcomponenti\u002Fbb-time-picker-input":92,"\u002Fen\u002Fcomponents\u002Fbb-time-picker-input":93,"\u002Fit\u002Fcomponenti\u002Fbb-toast":94,"\u002Fen\u002Fcomponents\u002Fbb-toast":95,"\u002Fit\u002Fcomponenti\u002Fbb-tooltip":96,"\u002Fen\u002Fcomponents\u002Fbb-tooltip":97,"\u002Fit\u002Fcomponenti\u002Fbb-tree":98,"\u002Fen\u002Fcomponents\u002Fbb-tree":99,"\u002Fit\u002Fguide\u002Fai-agents":100,"\u002Fen\u002Fguides\u002Fai-agents":101,"\u002Fit\u002Fguide\u002Fcoherence":102,"\u002Fen\u002Fguides\u002Fcoherence":103,"\u002Fit\u002Fguide\u002Fdesign-language":104,"\u002Fen\u002Fguides\u002Fdesign-language":105,"\u002Fit\u002Fguide\u002Fdesign-tokens":106,"\u002Fen\u002Fguides\u002Fdesign-tokens":107,"\u002Fit\u002Fguide\u002Ffetching-data":108,"\u002Fen\u002Fguides\u002Ffetching-data":109,"\u002Fit\u002Fguide\u002Ficons":110,"\u002Fen\u002Fguides\u002Ficons":111,"\u002Fit\u002Fguide\u002Finertia":112,"\u002Fen\u002Fguides\u002Finertia":113,"\u002Fit\u002Fguide\u002Finstallation":114,"\u002Fen\u002Fguides\u002Finstallation":115,"\u002Fit\u002Fguide\u002Fmigration":116,"\u002Fen\u002Fguides\u002Fmigration":117,"\u002Fit\u002Fguide\u002Fnuxt":118,"\u002Fen\u002Fguides\u002Fnuxt":119,"\u002Fit\u002Fguide\u002Foptions-and-items":120,"\u002Fen\u002Fguides\u002Foptions-and-items":121,"\u002Fit\u002Fguide\u002Fvalidated-forms":122,"\u002Fen\u002Fguides\u002Fvalidated-forms":123},"\u002Fen\u002Fcomponents\u002Fbb-accordion","\u002Fit\u002Fcomponenti\u002Fbb-accordion","\u002Fen\u002Fcomponents\u002Fbb-alert","\u002Fit\u002Fcomponenti\u002Fbb-alert","\u002Fen\u002Fcomponents\u002Fbb-asterisk","\u002Fit\u002Fcomponenti\u002Fbb-asterisk","\u002Fen\u002Fcomponents\u002Fbb-avatar","\u002Fit\u002Fcomponenti\u002Fbb-avatar","\u002Fen\u002Fcomponents\u002Fbb-badge","\u002Fit\u002Fcomponenti\u002Fbb-badge","\u002Fen\u002Fcomponents\u002Fbb-base-button","\u002Fit\u002Fcomponenti\u002Fbb-base-button","\u002Fen\u002Fcomponents\u002Fbb-breadcrumbs","\u002Fit\u002Fcomponenti\u002Fbb-breadcrumbs","\u002Fen\u002Fcomponents\u002Fbb-button","\u002Fit\u002Fcomponenti\u002Fbb-button","\u002Fen\u002Fcomponents\u002Fbb-checkbox","\u002Fit\u002Fcomponenti\u002Fbb-checkbox","\u002Fen\u002Fcomponents\u002Fbb-checkbox-group","\u002Fit\u002Fcomponenti\u002Fbb-checkbox-group","\u002Fen\u002Fcomponents\u002Fbb-collapsible","\u002Fit\u002Fcomponenti\u002Fbb-collapsible","\u002Fen\u002Fcomponents\u002Fbb-color-input","\u002Fit\u002Fcomponenti\u002Fbb-color-input","\u002Fen\u002Fcomponents\u002Fbb-color-palette","\u002Fit\u002Fcomponenti\u002Fbb-color-palette","\u002Fen\u002Fcomponents\u002Fbb-confirm","\u002Fit\u002Fcomponenti\u002Fbb-confirm","\u002Fen\u002Fcomponents\u002Fbb-date-picker","\u002Fit\u002Fcomponenti\u002Fbb-date-picker","\u002Fen\u002Fcomponents\u002Fbb-date-picker-input","\u002Fit\u002Fcomponenti\u002Fbb-date-picker-input","\u002Fen\u002Fcomponents\u002Fbb-dialog","\u002Fit\u002Fcomponenti\u002Fbb-dialog","\u002Fen\u002Fcomponents\u002Fbb-dropdown","\u002Fit\u002Fcomponenti\u002Fbb-dropdown","\u002Fen\u002Fcomponents\u002Fbb-dropdown-button","\u002Fit\u002Fcomponenti\u002Fbb-dropdown-button","\u002Fen\u002Fcomponents\u002Fbb-dropzone","\u002Fit\u002Fcomponenti\u002Fbb-dropzone","\u002Fen\u002Fcomponents\u002Fbb-form","\u002Fit\u002Fcomponenti\u002Fbb-form","\u002Fen\u002Fcomponents\u002Fbb-icon","\u002Fit\u002Fcomponenti\u002Fbb-icon","\u002Fen\u002Fcomponents\u002Fbb-indicator","\u002Fit\u002Fcomponenti\u002Fbb-indicator","\u002Fen\u002Fcomponents\u002Fbb-number-input","\u002Fit\u002Fcomponenti\u002Fbb-number-input","\u002Fen\u002Fcomponents\u002Fbb-off-canvas","\u002Fit\u002Fcomponenti\u002Fbb-off-canvas","\u002Fen\u002Fcomponents\u002Fbb-pagination","\u002Fit\u002Fcomponenti\u002Fbb-pagination","\u002Fen\u002Fcomponents\u002Fbb-popover","\u002Fit\u002Fcomponenti\u002Fbb-popover","\u002Fen\u002Fcomponents\u002Fbb-progress","\u002Fit\u002Fcomponenti\u002Fbb-progress","\u002Fen\u002Fcomponents\u002Fbb-radio","\u002Fit\u002Fcomponenti\u002Fbb-radio","\u002Fen\u002Fcomponents\u002Fbb-radio-group","\u002Fit\u002Fcomponenti\u002Fbb-radio-group","\u002Fen\u002Fcomponents\u002Fbb-rating","\u002Fit\u002Fcomponenti\u002Fbb-rating","\u002Fen\u002Fcomponents\u002Fbb-select","\u002Fit\u002Fcomponenti\u002Fbb-select","\u002Fen\u002Fcomponents\u002Fbb-select-popover","\u002Fit\u002Fcomponenti\u002Fbb-select-popover","\u002Fen\u002Fcomponents\u002Fbb-slider","\u002Fit\u002Fcomponenti\u002Fbb-slider","\u002Fen\u002Fcomponents\u002Fbb-smooth-height","\u002Fit\u002Fcomponenti\u002Fbb-smooth-height","\u002Fen\u002Fcomponents\u002Fbb-spinner","\u002Fit\u002Fcomponenti\u002Fbb-spinner","\u002Fen\u002Fcomponents\u002Fbb-switch","\u002Fit\u002Fcomponenti\u002Fbb-switch","\u002Fen\u002Fcomponents\u002Fbb-switch-group","\u002Fit\u002Fcomponenti\u002Fbb-switch-group","\u002Fen\u002Fcomponents\u002Fbb-table","\u002Fit\u002Fcomponenti\u002Fbb-table","\u002Fen\u002Fcomponents\u002Fbb-tabs","\u002Fit\u002Fcomponenti\u002Fbb-tabs","\u002Fen\u002Fcomponents\u002Fbb-tag","\u002Fit\u002Fcomponenti\u002Fbb-tag","\u002Fen\u002Fcomponents\u002Fbb-text-input","\u002Fit\u002Fcomponenti\u002Fbb-text-input","\u002Fen\u002Fcomponents\u002Fbb-textarea","\u002Fit\u002Fcomponenti\u002Fbb-textarea","\u002Fen\u002Fcomponents\u002Fbb-time-picker","\u002Fit\u002Fcomponenti\u002Fbb-time-picker","\u002Fen\u002Fcomponents\u002Fbb-time-picker-input","\u002Fit\u002Fcomponenti\u002Fbb-time-picker-input","\u002Fen\u002Fcomponents\u002Fbb-toast","\u002Fit\u002Fcomponenti\u002Fbb-toast","\u002Fen\u002Fcomponents\u002Fbb-tooltip","\u002Fit\u002Fcomponenti\u002Fbb-tooltip","\u002Fen\u002Fcomponents\u002Fbb-tree","\u002Fit\u002Fcomponenti\u002Fbb-tree","\u002Fen\u002Fguides\u002Fai-agents","\u002Fit\u002Fguide\u002Fai-agents","\u002Fen\u002Fguides\u002Fcoherence","\u002Fit\u002Fguide\u002Fcoherence","\u002Fen\u002Fguides\u002Fdesign-language","\u002Fit\u002Fguide\u002Fdesign-language","\u002Fen\u002Fguides\u002Fdesign-tokens","\u002Fit\u002Fguide\u002Fdesign-tokens","\u002Fen\u002Fguides\u002Ffetching-data","\u002Fit\u002Fguide\u002Ffetching-data","\u002Fen\u002Fguides\u002Ficons","\u002Fit\u002Fguide\u002Ficons","\u002Fen\u002Fguides\u002Finertia","\u002Fit\u002Fguide\u002Finertia","\u002Fen\u002Fguides\u002Finstallation","\u002Fit\u002Fguide\u002Finstallation","\u002Fen\u002Fguides\u002Fmigration","\u002Fit\u002Fguide\u002Fmigration","\u002Fen\u002Fguides\u002Fnuxt","\u002Fit\u002Fguide\u002Fnuxt","\u002Fen\u002Fguides\u002Foptions-and-items","\u002Fit\u002Fguide\u002Foptions-and-items","\u002Fen\u002Fguides\u002Fvalidated-forms","\u002Fit\u002Fguide\u002Fvalidated-forms",[125,136,145,166,178,220,253,286,307,328,340,346],{"label":126,"entries":127},"Getting started",[128,132],{"title":129,"path":130,"order":131},"Installation","\u002Fguides\u002Finstallation",1,{"title":133,"path":134,"order":135},"Migrating from v2","\u002Fguides\u002Fmigration",2,{"label":137,"entries":138},"Design system",[139,142],{"title":140,"path":141,"order":131},"Design tokens","\u002Fguides\u002Fdesign-tokens",{"title":143,"path":144,"order":135},"Design language","\u002Fguides\u002Fdesign-language",{"label":146,"entries":147},"Playbooks",[148,151,154,158,162],{"title":149,"path":150,"order":131},"Options and items","\u002Fguides\u002Foptions-and-items",{"title":152,"path":153,"order":135},"Fetching data","\u002Fguides\u002Ffetching-data",{"title":155,"path":156,"order":157},"Coherence","\u002Fguides\u002Fcoherence",3,{"title":159,"path":160,"order":161},"Validated forms","\u002Fguides\u002Fvalidated-forms",4,{"title":163,"path":164,"order":165},"Icons","\u002Fguides\u002Ficons",5,{"label":167,"entries":168},"Ecosystem",[169,172,175],{"title":170,"path":171,"order":131},"Inertia and Laravel","\u002Fguides\u002Finertia",{"title":173,"path":174,"order":135},"Nuxt","\u002Fguides\u002Fnuxt",{"title":176,"path":177,"order":157},"AI agents","\u002Fguides\u002Fai-agents",{"label":179,"entries":180},"Inputs",[181,184,187,190,193,196,200,204,208,212,216],{"title":182,"path":183,"component":182,"order":131},"BbBaseButton","\u002Fcomponents\u002Fbb-base-button",{"title":185,"path":186,"component":185,"order":135},"BbButton","\u002Fcomponents\u002Fbb-button",{"title":188,"path":189,"component":188,"order":157},"BbColorInput","\u002Fcomponents\u002Fbb-color-input",{"title":191,"path":192,"component":191,"order":161},"BbDatePickerInput","\u002Fcomponents\u002Fbb-date-picker-input",{"title":194,"path":195,"component":194,"order":165},"BbDropzone","\u002Fcomponents\u002Fbb-dropzone",{"title":197,"path":198,"component":197,"order":199},"BbForm","\u002Fcomponents\u002Fbb-form",6,{"title":201,"path":202,"component":201,"order":203},"BbNumberInput","\u002Fcomponents\u002Fbb-number-input",7,{"title":205,"path":206,"component":205,"order":207},"BbTag","\u002Fcomponents\u002Fbb-tag",8,{"title":209,"path":210,"component":209,"order":211},"BbTextarea","\u002Fcomponents\u002Fbb-textarea",9,{"title":213,"path":214,"component":213,"order":215},"BbTextInput","\u002Fcomponents\u002Fbb-text-input",10,{"title":217,"path":218,"component":217,"order":219},"BbTimePickerInput","\u002Fcomponents\u002Fbb-time-picker-input",11,{"label":221,"entries":222},"Selection",[223,226,229,232,235,238,241,244,247,250],{"title":224,"path":225,"component":224,"order":131},"BbCheckbox","\u002Fcomponents\u002Fbb-checkbox",{"title":227,"path":228,"component":227,"order":135},"BbCheckboxGroup","\u002Fcomponents\u002Fbb-checkbox-group",{"title":230,"path":231,"component":230,"order":157},"BbRadio","\u002Fcomponents\u002Fbb-radio",{"title":233,"path":234,"component":233,"order":161},"BbRadioGroup","\u002Fcomponents\u002Fbb-radio-group",{"title":236,"path":237,"component":236,"order":165},"BbRating","\u002Fcomponents\u002Fbb-rating",{"title":239,"path":240,"component":239,"order":199},"BbSelect","\u002Fcomponents\u002Fbb-select",{"title":242,"path":243,"component":242,"order":203},"BbSelectPopover","\u002Fcomponents\u002Fbb-select-popover",{"title":245,"path":246,"component":245,"order":207},"BbSlider","\u002Fcomponents\u002Fbb-slider",{"title":248,"path":249,"component":248,"order":211},"BbSwitch","\u002Fcomponents\u002Fbb-switch",{"title":251,"path":252,"component":251,"order":215},"BbSwitchGroup","\u002Fcomponents\u002Fbb-switch-group",{"label":254,"entries":255},"Overlay",[256,259,262,265,268,271,274,277,280,283],{"title":257,"path":258,"component":257,"order":131},"BbColorPalette","\u002Fcomponents\u002Fbb-color-palette",{"title":260,"path":261,"component":260,"order":135},"BbConfirm","\u002Fcomponents\u002Fbb-confirm",{"title":263,"path":264,"component":263,"order":157},"BbDatePicker","\u002Fcomponents\u002Fbb-date-picker",{"title":266,"path":267,"component":266,"order":161},"BbDialog","\u002Fcomponents\u002Fbb-dialog",{"title":269,"path":270,"component":269,"order":165},"BbDropdown","\u002Fcomponents\u002Fbb-dropdown",{"title":272,"path":273,"component":272,"order":199},"BbDropdownButton","\u002Fcomponents\u002Fbb-dropdown-button",{"title":275,"path":276,"component":275,"order":203},"BbOffCanvas","\u002Fcomponents\u002Fbb-off-canvas",{"title":278,"path":279,"component":278,"order":207},"BbPopover","\u002Fcomponents\u002Fbb-popover",{"title":281,"path":282,"component":281,"order":211},"BbTimePicker","\u002Fcomponents\u002Fbb-time-picker",{"title":284,"path":285,"component":284,"order":215},"BbTooltip","\u002Fcomponents\u002Fbb-tooltip",{"label":287,"entries":288},"Navigation",[289,292,295,298,301,304],{"title":290,"path":291,"component":290,"order":131},"BbAccordion","\u002Fcomponents\u002Fbb-accordion",{"title":293,"path":294,"component":293,"order":135},"BbBreadcrumbs","\u002Fcomponents\u002Fbb-breadcrumbs",{"title":296,"path":297,"component":296,"order":157},"BbCollapsible","\u002Fcomponents\u002Fbb-collapsible",{"title":299,"path":300,"component":299,"order":161},"BbPagination","\u002Fcomponents\u002Fbb-pagination",{"title":302,"path":303,"component":302,"order":165},"BbTabs","\u002Fcomponents\u002Fbb-tabs",{"title":305,"path":306,"component":305,"order":199},"BbTree","\u002Fcomponents\u002Fbb-tree",{"label":308,"entries":309},"Feedback",[310,313,316,319,322,325],{"title":311,"path":312,"component":311,"order":131},"BbAlert","\u002Fcomponents\u002Fbb-alert",{"title":314,"path":315,"component":314,"order":135},"BbBadge","\u002Fcomponents\u002Fbb-badge",{"title":317,"path":318,"component":317,"order":157},"BbIndicator","\u002Fcomponents\u002Fbb-indicator",{"title":320,"path":321,"component":320,"order":161},"BbProgress","\u002Fcomponents\u002Fbb-progress",{"title":323,"path":324,"component":323,"order":165},"BbSpinner","\u002Fcomponents\u002Fbb-spinner",{"title":326,"path":327,"component":326,"order":199},"BbToast","\u002Fcomponents\u002Fbb-toast",{"label":329,"entries":330},"Data Display",[331,334,337],{"title":332,"path":333,"component":332,"order":131},"BbAvatar","\u002Fcomponents\u002Fbb-avatar",{"title":335,"path":336,"component":335,"order":135},"BbIcon","\u002Fcomponents\u002Fbb-icon",{"title":338,"path":339,"component":338,"order":157},"BbTable","\u002Fcomponents\u002Fbb-table",{"label":341,"entries":342},"Layout & Utility",[343],{"title":344,"path":345,"component":344,"order":131},"BbSmoothHeight","\u002Fcomponents\u002Fbb-smooth-height",{"label":347,"entries":348},"Other",[349],{"title":350,"path":351,"component":350,"order":131},"BbAsterisk","\u002Fcomponents\u002Fbb-asterisk",null,{"id":354,"title":248,"body":355,"component":248,"description":890,"extension":891,"group":221,"meta":892,"navigation":893,"order":211,"path":249,"sections":894,"seo":900,"stem":901,"__hash__":902},"docs_en\u002Fcomponents\u002Fbb-switch.md",{"type":356,"value":357,"toc":883},"minimark",[358,401,415,428,436,442,446,461,495,501,512,515,518,537,543,550,553,571,578,584,587,593,596,599,618,624,643,649,652,697,700,703,710,713,745,748,864,879],[359,360,361,374],"when",{},[362,363,364,365,368,369,373],"p",{},"Reach for ",[366,367,248],"code",{}," when the control is the ",[370,371,372],"strong",{},"on\u002Foff state of a thing",": dark\nmode, notifications, a beta flag, \"anyone with the link can view\".",[375,376,378],"template",{"v-slot:else":377},"",[379,380,381,394],"ul",{},[382,383,384,389,390,393],"li",{},[385,386,387],"a",{"href":20},[366,388,224],{},": it is an ",[370,391,392],{},"answer or a\nselection",", like accepting terms or ticking \"send me a copy\"",[382,395,396,400],{},[385,397,398],{"href":78},[366,399,251],{},": several related on\u002Foff\nsettings bound to one array",[362,402,403,404,407,408,410,411,414],{},"The commit model does ",[370,405,406],{},"not"," decide this. A switch is equally correct as a live\ntoggle and as a field inside a form that commits on Save, and the library ships\na validated ",[366,409,248],{}," from ",[366,412,413],{},"bitboss-ui\u002Fvalidated"," for exactly that.",[362,416,417,418,423,424,427],{},"The field states, the value contract and the layout are identical to\n",[385,419,421],{"href":420},"\u002Fen\u002Fcomponents\u002Fbb-checkbox#states",[366,422,224],{},"'s, and are documented there.\nCarry one thing over: ",[366,425,426],{},"reverse"," inverted its meaning in v3, and the label-first\nsettings row is where you will hit it.",[429,430,432],"h2",{"id":431},"default",[433,434,435],"span",{},"Default",[362,437,438,441],{},[366,439,440],{},"v-model"," holds the state and updates on every toggle, whether the user clicks\nthe control or presses Space on it.",[443,444],"demo",{"name":445},"BbSwitch\u002FBasic",[362,447,448,449,452,453,456,457,460],{},"The control exposes ",[366,450,451],{},"role=\"switch\""," and its checked state on its own, so add no\nARIA of your own. ",[366,454,455],{},"label"," is required and is the accessible name. ",[366,458,459],{},"hide-label","\nkeeps it for assistive technology only, for the rare row where adjacent text\nalready names the switch.",[362,462,463,464,467,468,471,472,475,476,475,479,475,482,475,485,475,488,475,491,494],{},"Besides ",[366,465,466],{},"update:modelValue"," the switch re-emits the native events: ",[366,469,470],{},"change",",\n",[366,473,474],{},"click",", ",[366,477,478],{},"input",[366,480,481],{},"focus",[366,483,484],{},"blur",[366,486,487],{},"keydown",[366,489,490],{},"mousedown",[366,492,493],{},"mouseup",". Use them\nfor analytics or side effects, never to work out the new value.",[429,496,498],{"id":497},"values",[433,499,500],{},"When the model is not a boolean",[362,502,503,504,507,508,511],{},"Point ",[366,505,506],{},"true-value"," and ",[366,509,510],{},"false-value"," at the two members of an enum and the model\nholds whichever the current state maps to.",[443,513],{"name":514},"BbSwitch\u002FEnumValues",[362,516,517],{},"Do this whenever the API behind the switch speaks in names rather than booleans:\na visibility setting, a plan tier, a retention mode. The translation layer you\nwould otherwise write on both sides of the request stops existing.",[362,519,520,521,523,524,527,528,531,532,536],{},"The rest of the value contract is shared with ",[366,522,224],{},": any serializable\nvalue, structural equality, and ",[366,525,526],{},"submit-when-false"," plus ",[366,529,530],{},"name"," when a classic\nform post has to carry the unchecked case. See\n",[385,533,535],{"href":534},"\u002Fen\u002Fcomponents\u002Fbb-checkbox#values","what the model holds",".",[429,538,540],{"id":539},"instant-save",[433,541,542],{},"Saving on toggle",[362,544,545,546,549],{},"A ",[370,547,548],{},"live"," switch, one with no Save button behind it, owns its own persistence,\nand the request can fail after the thumb has already moved.",[443,551],{"name":552},"BbSwitch\u002FInstantSave",[362,554,555,556,559,560,563,564,566,567,570],{},"Bind ",[366,557,558],{},":model-value"," and handle ",[366,561,562],{},"@update:model-value"," rather than using\n",[366,565,440],{},", because you need to put the value back. Write it optimistically so\nthe control responds at once, hold it ",[366,568,569],{},"readonly"," while the request is in flight\nso nobody queues conflicting toggles, and restore the previous value on failure.",[362,572,573,574,577],{},"In this demo turning it on succeeds and turning it off is refused, so flip it\noff to see the revert. In a real application pair the failure with ",[366,575,576],{},"useToast",",\nbecause the user may not still be looking at that corner of the page.",[362,579,580,581,583],{},"Inside a submit-gated form, do none of this. Bind ",[366,582,440],{}," and let the form\ncommit.",[362,585,586],{},"What a surface must not do is both. A switch that already applied the moment it\nwas flipped, sitting under a Save button that implies it had not, leaves the\nuser unable to tell what is already live. Pick one commit model per surface.",[429,588,590],{"id":589},"passive-state",[433,591,592],{},"A switch driven from outside",[362,594,595],{},"Two props paint the control from state you own elsewhere, without either of them\nentering the model.",[443,597],{"name":598},"BbSwitch\u002FPassiveState",[362,600,601,604,605,608,609,611,612,614,615,617],{},[366,602,603],{},"checked"," forces the checked visual regardless of ",[366,606,607],{},"modelValue",", and re-syncs\nwhenever the prop changes. Interaction still emits ",[366,610,466],{}," for you\nto handle. Passing it together with a ",[366,613,440],{}," gives the switch two sources of\ntruth, and ",[366,616,603],{}," wins until you unset it.",[362,619,620,623],{},[366,621,622],{},"indeterminate"," parks the thumb midway, for a master switch whose children\ndisagree. It is a visual flag only: the model keeps its value, and the component\nre-asserts the state after clicks.",[625,626,627],"migration",{},[362,628,629,631,632,507,635,638,639,642],{},[366,630,603],{}," used to accept the strings ",[366,633,634],{},"'true'",[366,636,637],{},"'false'"," as well. In v3 it is\na plain boolean, so ",[366,640,641],{},"checked=\"false\""," no longer compiles. That string was truthy\nand turned the switch on, so this is a loud failure replacing a silent one.",[429,644,646],{"id":645},"custom-markup",[433,647,648],{},"Custom track and markup",[362,650,651],{},"There are two escape hatches here, and they are different sizes. Take the\nsmaller one first.",[362,653,654,655,658,659,662,663,665,666,475,668,475,671,475,674,471,677,475,679,475,681,475,684,475,687,475,690,693,694,536],{},"The ",[366,656,657],{},"icon"," slot replaces the ",[370,660,661],{},"entire track and thumb",", not a mark inside them,\nwhile keeping the input, the label, the field chrome and ",[366,664,451],{},". It\nreceives the live state: ",[366,667,603],{},[366,669,670],{},"focused",[366,672,673],{},"focusVisible",[366,675,676],{},"disabled",[366,678,569],{},[366,680,622],{},[366,682,683],{},"hasErrors",[366,685,686],{},"value",[366,688,689],{},"trueValue",[366,691,692],{},"falseValue","\nand ",[366,695,696],{},"text",[443,698],{"name":699},"BbSwitch\u002FIconSlot",[362,701,702],{},"Because the slot is the whole visual, what you put there has to communicate on,\noff and focused by itself. The common mistake is passing a bare icon and\nexpecting the track to stay behind it: there is no track any more, so wrap the\nicon in a container you have styled.",[362,704,705,706,709],{},"When even the row is wrong, say a toolbar toggle or a compact inline control,\n",[366,707,708],{},"BbBaseSwitchIcon"," gives you the track and thumb on their own.",[443,711],{"name":712},"BbSwitch\u002FCustomMarkup",[362,714,715,717,718,721,722,725,726,729,730,733,734,737,738,740,741,744],{},[366,716,708],{}," has no input, no events and no state. It is ",[366,719,720],{},"aria-hidden"," and\ncannot be focused, so it must sit on a real control: a ",[366,723,724],{},"\u003Clabel>"," wrapping an\n",[366,727,728],{},"\u003Cinput type=\"checkbox\" role=\"switch\">"," hidden with ",[366,731,732],{},"sr-only",", never with\n",[366,735,736],{},"display: none",". That ",[366,739,451],{}," is what makes a screen reader say \"on\" and\n\"off\" rather than \"checked\". Pass ",[366,742,743],{},"focus-visible"," yourself, or a keyboard user\ngets no ring.",[362,746,747],{},"The custom properties live on the track element, so target that element rather\nthan an ancestor. Change the geometry freely, because everything else derives\nfrom it: the thumb stays centred and travels flush at any size.",[749,750,754],"pre",{"className":751,"code":752,"language":753,"meta":377,"style":377},"language-css shiki shiki-themes github-light-high-contrast github-dark-high-contrast",".bb-switch .bb-base-switch-icon {\n    --w: 44px; \u002F* track width, default 32px *\u002F\n    --h: 24px; \u002F* track height, default 18px *\u002F\n    --thumb: 20px; \u002F* thumb diameter, default 16px *\u002F\n    --color: #16a34a; \u002F* track fill when on *\u002F\n    --radius: 6px; \u002F* default 999px *\u002F\n}\n","css",[366,755,756,770,793,810,827,842,859],{"__ignoreMap":377},[433,757,759,763,766],{"class":758,"line":131},"line",[433,760,762],{"class":761},"s-5SL",".bb-switch",[433,764,765],{"class":761}," .bb-base-switch-icon",[433,767,769],{"class":768},"suds8"," {\n",[433,771,772,776,779,782,786,789],{"class":758,"line":135},[433,773,775],{"class":774},"soyes","    --w",[433,777,778],{"class":768},": ",[433,780,781],{"class":761},"44",[433,783,785],{"class":784},"sHUrx","px",[433,787,788],{"class":768},"; ",[433,790,792],{"class":791},"sLBg1","\u002F* track width, default 32px *\u002F\n",[433,794,795,798,800,803,805,807],{"class":758,"line":157},[433,796,797],{"class":774},"    --h",[433,799,778],{"class":768},[433,801,802],{"class":761},"24",[433,804,785],{"class":784},[433,806,788],{"class":768},[433,808,809],{"class":791},"\u002F* track height, default 18px *\u002F\n",[433,811,812,815,817,820,822,824],{"class":758,"line":161},[433,813,814],{"class":774},"    --thumb",[433,816,778],{"class":768},[433,818,819],{"class":761},"20",[433,821,785],{"class":784},[433,823,788],{"class":768},[433,825,826],{"class":791},"\u002F* thumb diameter, default 16px *\u002F\n",[433,828,829,832,834,837,839],{"class":758,"line":165},[433,830,831],{"class":774},"    --color",[433,833,778],{"class":768},[433,835,836],{"class":761},"#16a34a",[433,838,788],{"class":768},[433,840,841],{"class":791},"\u002F* track fill when on *\u002F\n",[433,843,844,847,849,852,854,856],{"class":758,"line":199},[433,845,846],{"class":774},"    --radius",[433,848,778],{"class":768},[433,850,851],{"class":761},"6",[433,853,785],{"class":784},[433,855,788],{"class":768},[433,857,858],{"class":791},"\u002F* default 999px *\u002F\n",[433,860,861],{"class":758,"line":203},[433,862,863],{"class":768},"}\n",[362,865,866,867,870,871,874,875,878],{},"This is where v2's ",[366,868,869],{},"color"," prop went, removed with no replacement. Recolor\nthrough ",[366,872,873],{},"--color",", or through the theme's ",[366,876,877],{},"--bb-primary"," when the whole product\nshould follow.",[880,881,882],"style",{},"html pre.shiki code .s-5SL, html code.shiki .s-5SL{--shiki-default:#023B95;--shiki-dark:#91CBFF}html pre.shiki code .suds8, html code.shiki .suds8{--shiki-default:#0E1116;--shiki-dark:#F0F3F6}html pre.shiki code .soyes, html code.shiki .soyes{--shiki-default:#702C00;--shiki-dark:#FFB757}html pre.shiki code .sHUrx, html code.shiki .sHUrx{--shiki-default:#A0111F;--shiki-dark:#FF9492}html pre.shiki code .sLBg1, html code.shiki .sLBg1{--shiki-default:#66707B;--shiki-dark:#BDC4CC}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":377,"searchDepth":157,"depth":157,"links":884},[885,886,887,888,889],{"id":431,"depth":135,"text":435},{"id":497,"depth":135,"text":500},{"id":539,"depth":135,"text":542},{"id":589,"depth":135,"text":592},{"id":645,"depth":135,"text":648},"One on\u002Foff switch for the state of a thing, with your own values and a replaceable track.","md",{},true,[895,896,897,898,899],{"id":431,"title":435},{"id":497,"title":500},{"id":539,"title":542},{"id":589,"title":592},{"id":645,"title":648},{"title":248,"description":890},"components\u002Fbb-switch","v6co5Ep_6cnKdIv24gsFBry7r3Wurel1D4Cjr_xnlhk",{"name":248,"slug":904,"group":221,"description":905,"entrypoint":906,"docs":907,"props":910,"models":1108,"events":1111,"slots":1131,"exposed":1142,"pt":1143,"validated":1176,"migration":1190},"bb-switch","Toggles two-state values with switch semantics.","bitboss-ui",{"contract":908,"source":909},"ai\u002FBbSwitch.md","ai\u002Fsource\u002FBbSwitch.md",[911,916,920,925,930,933,937,940,942,945,948,951,954,957,962,966,969,971,973,976,980,983,985,987,989,991,993,995,997,999,1001,1003,1005,1007,1009,1011,1013,1015,1017,1019,1021,1023,1025,1027,1029,1031,1033,1035,1037,1039,1041,1043,1045,1047,1049,1051,1053,1055,1057,1059,1061,1063,1065,1067,1069,1071,1073,1075,1077,1079,1081,1083,1085,1087,1089,1092,1095,1098,1102,1105],{"name":912,"type":913,"required":914,"default":352,"description":915,"note":352,"demo":352},"autofocus","Booleanish | undefined",false,"Sets autofocus on page load.",{"name":603,"type":917,"required":914,"default":352,"description":918,"note":919,"demo":589},"boolean | undefined","Defines the input as checked.","Paints the control from state you own elsewhere and wins over `modelValue` until you unset it — so it is display-driven or bound, never both. Narrowed to a plain boolean in v3: the v2 `checked=\"false\"` no longer compiles, where it used to turn the switch on.",{"name":921,"type":922,"required":914,"default":352,"description":923,"note":924,"demo":431},"description","string | undefined","Descriptive text displayed below the label and above the input. Unlike the hint it is always\nvisible, and it is linked to the input via `aria-describedby` (after any\n`errors` \u002F `warnings`, before the `hint`).","Always visible and tied to the control through `aria-describedby`. On a settings row it is where the consequence of flipping the switch belongs.",{"name":926,"type":927,"required":914,"default":928,"description":929,"note":352,"demo":352},"direction","InputDirection | undefined","\"auto\"","Direction of the layout of the component. Can either be a predefined value or a pattern separated by a space like `xx xxxxx`.",{"name":676,"type":917,"required":914,"default":931,"description":932,"note":352,"demo":352},"false","Disables the component.",{"name":934,"type":935,"required":914,"default":352,"description":936,"note":352,"demo":352},"errors","string | string[] | undefined","Can be a string or an array of string containing the messages to display.\nThey render in an `aria-live=\"polite\"` region (announced when they appear)\nand, while the list is non-empty, are referenced FIRST from the control's\n`aria-describedby`, so the reason the field is invalid is re-read whenever\nthe control regains focus.",{"name":692,"type":938,"required":914,"default":352,"description":939,"note":352,"demo":497},"any","Value of the input when unchecked. It handles any kind of serializable object.",{"name":683,"type":917,"required":914,"default":931,"description":941,"note":352,"demo":352},"Define if the component should be in an error state.\nIt usually attaches a CSS class for styling purposes.",{"name":943,"type":917,"required":914,"default":931,"description":944,"note":352,"demo":352},"hasWarnings","Define if the component should be in a warning state.\nSame chrome as errors with `--bb-warn`; errors take priority.",{"name":946,"type":917,"required":914,"default":931,"description":947,"note":352,"demo":352},"hideLabel","Visually hides the label of the input while maintaining accessibility.",{"name":949,"type":922,"required":914,"default":352,"description":950,"note":352,"demo":352},"hint","Text box to be displayed near the input, usually to indicate instructions.",{"name":952,"type":922,"required":914,"default":352,"description":953,"note":352,"demo":352},"id","The identifier of the component.",{"name":622,"type":917,"required":914,"default":931,"description":955,"note":956,"demo":589},"Sets the input in an indeterminate state.","Parks the thumb midway, for a master switch whose children disagree. Visual only — the model keeps its value, and the component re-asserts the state after clicks because the DOM resets it natively.",{"name":958,"type":959,"required":914,"default":960,"description":961,"note":352,"demo":352},"inputPosition","\"left\" | \"center\" | \"right\" | undefined","\"left\"","Sets the alignment of the input. Since inputs are inline block they can be aligned just as text can.",{"name":455,"type":963,"required":893,"default":352,"description":964,"note":965,"demo":431},"string","Text content of the label of the element.","Required — it is the accessible name of the switch. Do not add ARIA of your own: the control already exposes `role=\"switch\"` and its state.",{"name":967,"type":959,"required":914,"default":352,"description":968,"note":352,"demo":352},"labelPosition","Sets the text alignment of the label.",{"name":607,"type":938,"required":914,"default":352,"description":970,"note":352,"demo":352},"Used by v-model. Can be any serializable type.",{"name":530,"type":922,"required":914,"default":352,"description":972,"note":352,"demo":352},"Defines the name of the input.",{"name":974,"type":917,"required":914,"default":931,"description":975,"note":352,"demo":352},"persistentHint","Keeps the hint displayed.",{"name":977,"type":978,"required":914,"default":352,"description":979,"note":352,"demo":352},"pt","PtMap\u003CTogglePtPart, CheckablePtState> | undefined","Passthrough, object form: the same keys as the `pt:*` attributes\nwithout the prefix. See the `pt:\u003Cpart>` row.",{"name":981,"type":982,"required":914,"default":352,"description":352,"note":352,"demo":352},"pt:description","PtValue | undefined",{"name":984,"type":982,"required":914,"default":352,"description":352,"note":352,"demo":352},"pt:description:checked",{"name":986,"type":982,"required":914,"default":352,"description":352,"note":352,"demo":352},"pt:description:disabled",{"name":988,"type":982,"required":914,"default":352,"description":352,"note":352,"demo":352},"pt:description:errors",{"name":990,"type":982,"required":914,"default":352,"description":352,"note":352,"demo":352},"pt:description:focus-visible",{"name":992,"type":982,"required":914,"default":352,"description":352,"note":352,"demo":352},"pt:description:focused",{"name":994,"type":982,"required":914,"default":352,"description":352,"note":352,"demo":352},"pt:description:indeterminate",{"name":996,"type":982,"required":914,"default":352,"description":352,"note":352,"demo":352},"pt:description:readonly",{"name":998,"type":982,"required":914,"default":352,"description":352,"note":352,"demo":352},"pt:description:warnings",{"name":1000,"type":982,"required":914,"default":352,"description":352,"note":352,"demo":352},"pt:hint",{"name":1002,"type":982,"required":914,"default":352,"description":352,"note":352,"demo":352},"pt:hint:checked",{"name":1004,"type":982,"required":914,"default":352,"description":352,"note":352,"demo":352},"pt:hint:disabled",{"name":1006,"type":982,"required":914,"default":352,"description":352,"note":352,"demo":352},"pt:hint:errors",{"name":1008,"type":982,"required":914,"default":352,"description":352,"note":352,"demo":352},"pt:hint:focus-visible",{"name":1010,"type":982,"required":914,"default":352,"description":352,"note":352,"demo":352},"pt:hint:focused",{"name":1012,"type":982,"required":914,"default":352,"description":352,"note":352,"demo":352},"pt:hint:indeterminate",{"name":1014,"type":982,"required":914,"default":352,"description":352,"note":352,"demo":352},"pt:hint:readonly",{"name":1016,"type":982,"required":914,"default":352,"description":352,"note":352,"demo":352},"pt:hint:warnings",{"name":1018,"type":982,"required":914,"default":352,"description":352,"note":352,"demo":352},"pt:icon",{"name":1020,"type":982,"required":914,"default":352,"description":352,"note":352,"demo":352},"pt:icon:checked",{"name":1022,"type":982,"required":914,"default":352,"description":352,"note":352,"demo":352},"pt:icon:disabled",{"name":1024,"type":982,"required":914,"default":352,"description":352,"note":352,"demo":352},"pt:icon:errors",{"name":1026,"type":982,"required":914,"default":352,"description":352,"note":352,"demo":352},"pt:icon:focus-visible",{"name":1028,"type":982,"required":914,"default":352,"description":352,"note":352,"demo":352},"pt:icon:focused",{"name":1030,"type":982,"required":914,"default":352,"description":352,"note":352,"demo":352},"pt:icon:indeterminate",{"name":1032,"type":982,"required":914,"default":352,"description":352,"note":352,"demo":352},"pt:icon:readonly",{"name":1034,"type":982,"required":914,"default":352,"description":352,"note":352,"demo":352},"pt:icon:warnings",{"name":1036,"type":982,"required":914,"default":352,"description":352,"note":352,"demo":352},"pt:label",{"name":1038,"type":982,"required":914,"default":352,"description":352,"note":352,"demo":352},"pt:label:checked",{"name":1040,"type":982,"required":914,"default":352,"description":352,"note":352,"demo":352},"pt:label:disabled",{"name":1042,"type":982,"required":914,"default":352,"description":352,"note":352,"demo":352},"pt:label:errors",{"name":1044,"type":982,"required":914,"default":352,"description":352,"note":352,"demo":352},"pt:label:focus-visible",{"name":1046,"type":982,"required":914,"default":352,"description":352,"note":352,"demo":352},"pt:label:focused",{"name":1048,"type":982,"required":914,"default":352,"description":352,"note":352,"demo":352},"pt:label:indeterminate",{"name":1050,"type":982,"required":914,"default":352,"description":352,"note":352,"demo":352},"pt:label:readonly",{"name":1052,"type":982,"required":914,"default":352,"description":352,"note":352,"demo":352},"pt:label:warnings",{"name":1054,"type":982,"required":914,"default":352,"description":352,"note":352,"demo":352},"pt:message",{"name":1056,"type":982,"required":914,"default":352,"description":352,"note":352,"demo":352},"pt:message:checked",{"name":1058,"type":982,"required":914,"default":352,"description":352,"note":352,"demo":352},"pt:message:disabled",{"name":1060,"type":982,"required":914,"default":352,"description":352,"note":352,"demo":352},"pt:message:errors",{"name":1062,"type":982,"required":914,"default":352,"description":352,"note":352,"demo":352},"pt:message:focus-visible",{"name":1064,"type":982,"required":914,"default":352,"description":352,"note":352,"demo":352},"pt:message:focused",{"name":1066,"type":982,"required":914,"default":352,"description":352,"note":352,"demo":352},"pt:message:indeterminate",{"name":1068,"type":982,"required":914,"default":352,"description":352,"note":352,"demo":352},"pt:message:readonly",{"name":1070,"type":982,"required":914,"default":352,"description":352,"note":352,"demo":352},"pt:message:warnings",{"name":1072,"type":982,"required":914,"default":352,"description":352,"note":352,"demo":352},"pt:root",{"name":1074,"type":982,"required":914,"default":352,"description":352,"note":352,"demo":352},"pt:root:checked",{"name":1076,"type":982,"required":914,"default":352,"description":352,"note":352,"demo":352},"pt:root:disabled",{"name":1078,"type":982,"required":914,"default":352,"description":352,"note":352,"demo":352},"pt:root:errors",{"name":1080,"type":982,"required":914,"default":352,"description":352,"note":352,"demo":352},"pt:root:focus-visible",{"name":1082,"type":982,"required":914,"default":352,"description":352,"note":352,"demo":352},"pt:root:focused",{"name":1084,"type":982,"required":914,"default":352,"description":352,"note":352,"demo":352},"pt:root:indeterminate",{"name":1086,"type":982,"required":914,"default":352,"description":352,"note":352,"demo":352},"pt:root:readonly",{"name":1088,"type":982,"required":914,"default":352,"description":352,"note":352,"demo":352},"pt:root:warnings",{"name":569,"type":917,"required":914,"default":931,"description":1090,"note":1091,"demo":539},"Sets the input in a readonly state.","The right state for a switch whose change is in flight, and for admin-locked settings. It sets no native `disabled` attribute, so do not target `:disabled` in CSS or tests — `.bb-base-switch--readonly` is the hook.",{"name":1093,"type":917,"required":914,"default":931,"description":1094,"note":352,"demo":352},"required","Sets the input as required.",{"name":426,"type":917,"required":914,"default":931,"description":1096,"note":1097,"demo":352},"Reverses the layout: in every direction the order of the label and the\ninput is swapped from the standard arrangement.","Its meaning inverted in v3 and the compiler cannot see it. The default rendering is unchanged, but a v2 `:reverse=\"false\"` becomes a bare `reverse` — which is the label-first settings row, so most switches that set it are affected.",{"name":1099,"type":917,"required":914,"default":931,"description":1100,"note":1101,"demo":352},"submitWhenFalse","Will submit \"falseValue\" if the input is not checked. Otherwise \"trueValue\" will be submitted.","Only for classic form posts: an unchecked switch otherwise submits nothing. The full value contract is shared with `BbCheckbox`.",{"name":689,"type":938,"required":914,"default":352,"description":1103,"note":1104,"demo":497},"Value of the input when checked. It handles any kind of serializable object.","Point it and `false-value` at the two members of an enum and the model stops needing a translation layer on either side of the request.",{"name":1106,"type":935,"required":914,"default":352,"description":1107,"note":352,"demo":352},"warnings","Warning messages to display beneath the field, in their own `aria-live`\nregion and amber (`--bb-text-warn`). A string or array; a non-empty list\nimplies the warning state. Errors suppress warnings when both are set.\nWhile displayed they are also referenced from the control's\n`aria-describedby`, after any errors and before the description\u002Fhint.",[1109],{"name":607,"type":938,"note":1110,"demo":431},"Carries the mapped `true-value` \u002F `false-value`. Use `:model-value` with `@update:model-value` instead of `v-model` when a failed save has to put the previous value back.",[1112,1114,1116,1118,1120,1122,1124,1126,1128],{"name":484,"signature":1113,"description":352,"note":352,"demo":352},"(event: \"blur\", event: FocusEvent): void",{"name":470,"signature":1115,"description":352,"note":352,"demo":352},"(event: \"change\", event: Event): void",{"name":474,"signature":1117,"description":352,"note":352,"demo":352},"(event: \"click\", event: MouseEvent): void",{"name":481,"signature":1119,"description":352,"note":352,"demo":352},"(event: \"focus\", event: FocusEvent): void",{"name":478,"signature":1121,"description":352,"note":352,"demo":352},"(event: \"input\", event: Event): void",{"name":487,"signature":1123,"description":352,"note":352,"demo":352},"(event: \"keydown\", event: KeyboardEvent): void",{"name":490,"signature":1125,"description":352,"note":352,"demo":352},"(event: \"mousedown\", event: MouseEvent): void",{"name":493,"signature":1127,"description":352,"note":352,"demo":352},"(event: \"mouseup\", event: MouseEvent): void",{"name":466,"signature":1129,"description":352,"note":1130,"demo":539},"(event: \"update:modelValue\", value: any): void","The hook for a live switch that saves itself: write optimistically here, hold the control readonly while the request is in flight, and restore the previous value on failure.",[1132,1135,1139],{"name":921,"type":1133,"description":1134,"note":352,"demo":352},"BbSwitchDescriptionSlotProps","Replaces the description text. Provided alone (no `description` prop) it still\nrenders the description region and wires it into `aria-describedby`.",{"name":657,"type":1136,"description":1137,"note":1138,"demo":645},"BbCheckboxIconSlotProps","Replaces the default toggle track visual inside the switch. Receives the\nswitch state plus the label text.","Replaces the entire track and thumb, not a glyph inside them — a bare icon here leaves no track at all. Keep it when only the visual is wrong; when the whole row is wrong, drop to `BbBaseSwitchIcon`.",{"name":455,"type":1140,"description":1141,"note":352,"demo":352},"BbSwitchLabelSlotProps","Replaces the default label text rendered next to the switch.",[],{"parts":1144,"states":1159},[1145,1148,1150,1152,1155,1157],{"name":1146,"description":1147},"root","The toggle's container: the glyph, the label and the lines under them.",{"name":455,"description":1149},"The label text beside the glyph (the `label` prop).",{"name":921,"description":1151},"The muted line under the label (the `description` prop).",{"name":1153,"description":1154},"message","The errors \u002F warnings line. A node of its own: it can show at the same time as `hint`.",{"name":949,"description":1156},"The helper line (the `hint` prop), shown on focus, or always with `persistent-hint`.",{"name":657,"description":1158},"The drawn glyph — the box, the dot or the switch track. The default one: a consumer `icon` slot replaces it. The hidden native input is not a part.",[1160,1162,1164,1166,1168,1170,1172,1174],{"name":603,"description":1161},"Component-wide: the toggle is on.",{"name":676,"description":1163},"Component-wide: the toggle is `disabled`.",{"name":934,"description":1165},"Component-wide: the toggle shows errors — the glyph and the message line turn red.",{"name":743,"description":1167},"Component-wide: that focus is keyboard-visible — where a focus ring belongs.",{"name":670,"description":1169},"Component-wide: the native input has focus — any focus, mouse included, like the `focused` slot prop.",{"name":622,"description":1171},"Component-wide: the mixed state (the `indeterminate` prop) — neither on nor off.",{"name":569,"description":1173},"Component-wide: the toggle is `readonly` — focusable, cannot change.",{"name":1106,"description":1175},"Component-wide: the toggle shows warnings and no errors.",{"entrypoint":413,"props":1177},[1178,1182,1187],{"name":1179,"type":1180,"required":914,"default":352,"description":1181,"note":352,"demo":352},"rules","RuleExpression\u003Cany>","vee-validate rules for this field.",{"name":1183,"type":1184,"required":914,"default":1185,"description":1186,"note":352,"demo":352},"validateOn","ValidateTiming[] | undefined","[\"update:modelValue\", \"change\", \"blur\"]","Which interactions trigger validation (see\n`ValidatedFieldProps.validateOn` for the timing vocabulary).",{"name":1188,"type":922,"required":914,"default":352,"description":1189,"note":352,"demo":352},"vid","Explicit vee-validate field name. **Usually omit it** — the name is derived\nautomatically from the control's `label`\u002F`legend`. Only set `vid` when that\nderivation wouldn't be unique (e.g. v-for rows, or array `v-model`s that\nshare a label). A control with no `label`\u002F`legend` (like `BbDropzone`) must\nprovide it.",{"removed":1191,"renamed":1202},[1192,1197],{"name":869,"replacedBy":352,"since":1193,"migration":1194,"silent":893,"fix":1195},"3.0.0-unreleased","ai\u002Fguides\u002Fmigration\u002Fcomponents\u002Fbb-checkbox.md",{"kind":1196},"manual",{"name":1198,"replacedBy":943,"since":1193,"migration":1199,"silent":893,"fix":1200},"hasWarning","ai\u002Fguides\u002Fmigration\u002Fv2-to-v3.md",{"kind":1201},"rename",[1203],{"from":1198,"to":943,"since":1193,"migration":1199,"fix":1204},{"kind":1201},1790005165720]