[{"data":1,"prerenderedAt":488},["ShallowReactive",2],{"i-ph:magnifying-glass":3,"i-ph:circle":8,"i-ph:moon":10,"i-ph:github-logo":12,"i-ph:brackets-curly":14,"i-ph:file-css":16,"i-ph:rectangle-dashed":18,"i-ph:arrow-left":20,"i-ph:arrow-right":22,"components-switch":24},{"left":4,"top":4,"width":5,"height":5,"rotate":4,"vFlip":6,"hFlip":6,"body":7},0,256,false,"\u003Cpath fill=\"currentColor\" d=\"m229.66 218.34l-50.07-50.06a88.11 88.11 0 1 0-11.31 11.31l50.06 50.07a8 8 0 0 0 11.32-11.32M40 112a72 72 0 1 1 72 72a72.08 72.08 0 0 1-72-72\"/>",{"left":4,"top":4,"width":5,"height":5,"rotate":4,"vFlip":6,"hFlip":6,"body":9},"\u003Cpath fill=\"currentColor\" d=\"M128 24a104 104 0 1 0 104 104A104.11 104.11 0 0 0 128 24m0 192a88 88 0 1 1 88-88a88.1 88.1 0 0 1-88 88\"/>",{"left":4,"top":4,"width":5,"height":5,"rotate":4,"vFlip":6,"hFlip":6,"body":11},"\u003Cpath fill=\"currentColor\" d=\"M233.54 142.23a8 8 0 0 0-8-2a88.08 88.08 0 0 1-109.8-109.8a8 8 0 0 0-10-10a104.84 104.84 0 0 0-52.91 37A104 104 0 0 0 136 224a103.1 103.1 0 0 0 62.52-20.88a104.84 104.84 0 0 0 37-52.91a8 8 0 0 0-1.98-7.98m-44.64 48.11A88 88 0 0 1 65.66 67.11a89 89 0 0 1 31.4-26A106 106 0 0 0 96 56a104.11 104.11 0 0 0 104 104a106 106 0 0 0 14.92-1.06a89 89 0 0 1-26.02 31.4\"/>",{"left":4,"top":4,"width":5,"height":5,"rotate":4,"vFlip":6,"hFlip":6,"body":13},"\u003Cpath fill=\"currentColor\" d=\"M208.31 75.68A59.78 59.78 0 0 0 202.93 28a8 8 0 0 0-6.93-4a59.75 59.75 0 0 0-48 24h-24a59.75 59.75 0 0 0-48-24a8 8 0 0 0-6.93 4a59.78 59.78 0 0 0-5.38 47.68A58.14 58.14 0 0 0 56 104v8a56.06 56.06 0 0 0 48.44 55.47A39.8 39.8 0 0 0 96 192v8H72a24 24 0 0 1-24-24a40 40 0 0 0-40-40a8 8 0 0 0 0 16a24 24 0 0 1 24 24a40 40 0 0 0 40 40h24v16a8 8 0 0 0 16 0v-40a24 24 0 0 1 48 0v40a8 8 0 0 0 16 0v-40a39.8 39.8 0 0 0-8.44-24.53A56.06 56.06 0 0 0 216 112v-8a58.14 58.14 0 0 0-7.69-28.32M200 112a40 40 0 0 1-40 40h-48a40 40 0 0 1-40-40v-8a41.74 41.74 0 0 1 6.9-22.48a8 8 0 0 0 1.1-7.69a43.8 43.8 0 0 1 .79-33.58a43.88 43.88 0 0 1 32.32 20.06a8 8 0 0 0 6.71 3.69h32.35a8 8 0 0 0 6.74-3.69a43.87 43.87 0 0 1 32.32-20.06a43.8 43.8 0 0 1 .77 33.58a8.09 8.09 0 0 0 1 7.65a41.7 41.7 0 0 1 7 22.52Z\"/>",{"left":4,"top":4,"width":5,"height":5,"rotate":4,"vFlip":6,"hFlip":6,"body":15},"\u003Cpath fill=\"currentColor\" d=\"M43.18 128a29.8 29.8 0 0 1 8 10.26c4.8 9.9 4.8 22 4.8 33.74c0 24.31 1 36 24 36a8 8 0 0 1 0 16c-17.48 0-29.32-6.14-35.2-18.26c-4.8-9.9-4.8-22-4.8-33.74c0-24.31-1-36-24-36a8 8 0 0 1 0-16c23 0 24-11.69 24-36c0-11.72 0-23.84 4.8-33.74C50.68 38.14 62.52 32 80 32a8 8 0 0 1 0 16c-23 0-24 11.69-24 36c0 11.72 0 23.84-4.8 33.74A29.8 29.8 0 0 1 43.18 128M240 120c-23 0-24-11.69-24-36c0-11.72 0-23.84-4.8-33.74C205.32 38.14 193.48 32 176 32a8 8 0 0 0 0 16c23 0 24 11.69 24 36c0 11.72 0 23.84 4.8 33.74a29.8 29.8 0 0 0 8 10.26a29.8 29.8 0 0 0-8 10.26c-4.8 9.9-4.8 22-4.8 33.74c0 24.31-1 36-24 36a8 8 0 0 0 0 16c17.48 0 29.32-6.14 35.2-18.26c4.8-9.9 4.8-22 4.8-33.74c0-24.31 1-36 24-36a8 8 0 0 0 0-16\"/>",{"left":4,"top":4,"width":5,"height":5,"rotate":4,"vFlip":6,"hFlip":6,"body":17},"\u003Cpath fill=\"currentColor\" d=\"M48 180c0 11 7.18 20 16 20a14.24 14.24 0 0 0 10.22-4.66a8 8 0 1 1 11.55 11.06A30 30 0 0 1 64 216c-17.65 0-32-16.15-32-36s14.35-36 32-36a30 30 0 0 1 21.77 9.6a8 8 0 1 1-11.55 11.06A14.24 14.24 0 0 0 64 160c-8.82 0-16 9-16 20m79.6-8.69c-4-1.16-8.14-2.35-10.45-3.84c-1.26-.81-1.23-1-1.12-1.9a4.54 4.54 0 0 1 2-3.67c4.6-3.12 15.34-1.73 19.83-.56a8 8 0 0 0 4.07-15.48c-2.12-.55-21-5.22-32.83 2.76a20.55 20.55 0 0 0-9 14.95c-2 15.88 13.64 20.41 23 23.11c12.07 3.49 13.13 4.92 12.78 7.59c-.31 2.41-1.26 3.34-2.14 3.93c-4.6 3.06-15.17 1.56-19.55.36a8 8 0 0 0-4.3 15.41a61.2 61.2 0 0 0 15.18 2c5.83 0 12.3-1 17.49-4.46a20.82 20.82 0 0 0 9.19-15.23c2.25-17.28-14.27-22.11-24.15-24.97m64 0c-4-1.16-8.14-2.35-10.45-3.84c-1.25-.81-1.23-1-1.12-1.9a4.54 4.54 0 0 1 2-3.67c4.6-3.12 15.34-1.73 19.82-.56a8 8 0 0 0 4.07-15.48c-2.11-.55-21-5.22-32.83 2.76a20.58 20.58 0 0 0-8.95 14.95c-2 15.88 13.65 20.41 23 23.11c12.06 3.49 13.12 4.92 12.78 7.59c-.31 2.41-1.26 3.34-2.15 3.93c-4.6 3.06-15.16 1.56-19.54.36a8 8 0 0 0-4.3 15.44a61.3 61.3 0 0 0 15.19 2c5.82 0 12.3-1 17.49-4.46a20.81 20.81 0 0 0 9.18-15.23c2.21-17.31-14.31-22.14-24.2-25ZM40 112V40a16 16 0 0 1 16-16h96a8 8 0 0 1 5.66 2.34l56 56A8 8 0 0 1 216 88v24a8 8 0 1 1-16 0V96h-48a8 8 0 0 1-8-8V40H56v72a8 8 0 0 1-16 0m120-32h28.68L160 51.31Z\"/>",{"left":4,"top":4,"width":5,"height":5,"rotate":4,"vFlip":6,"hFlip":6,"body":19},"\u003Cpath fill=\"currentColor\" d=\"M80 48a8 8 0 0 1-8 8H40v16a8 8 0 0 1-16 0V56a16 16 0 0 1 16-16h32a8 8 0 0 1 8 8M32 152a8 8 0 0 0 8-8v-32a8 8 0 0 0-16 0v32a8 8 0 0 0 8 8m40 48H40v-16a8 8 0 0 0-16 0v16a16 16 0 0 0 16 16h32a8 8 0 0 0 0-16m72 0h-32a8 8 0 0 0 0 16h32a8 8 0 0 0 0-16m80-24a8 8 0 0 0-8 8v16h-32a8 8 0 0 0 0 16h32a16 16 0 0 0 16-16v-16a8 8 0 0 0-8-8m0-72a8 8 0 0 0-8 8v32a8 8 0 0 0 16 0v-32a8 8 0 0 0-8-8m-8-64h-32a8 8 0 0 0 0 16h32v16a8 8 0 0 0 16 0V56a16 16 0 0 0-16-16m-72 0h-32a8 8 0 0 0 0 16h32a8 8 0 0 0 0-16\"/>",{"left":4,"top":4,"width":5,"height":5,"rotate":4,"vFlip":6,"hFlip":6,"body":21},"\u003Cpath fill=\"currentColor\" d=\"M224 128a8 8 0 0 1-8 8H59.31l58.35 58.34a8 8 0 0 1-11.32 11.32l-72-72a8 8 0 0 1 0-11.32l72-72a8 8 0 0 1 11.32 11.32L59.31 120H216a8 8 0 0 1 8 8\"/>",{"left":4,"top":4,"width":5,"height":5,"rotate":4,"vFlip":6,"hFlip":6,"body":23},"\u003Cpath fill=\"currentColor\" d=\"m221.66 133.66l-72 72a8 8 0 0 1-11.32-11.32L196.69 136H40a8 8 0 0 1 0-16h156.69l-58.35-58.34a8 8 0 0 1 11.32-11.32l72 72a8 8 0 0 1 0 11.32\"/>",{"id":25,"title":26,"body":27,"description":37,"extension":482,"meta":483,"navigation":139,"path":484,"seo":485,"stem":486,"__hash__":487},"docs/docs/components/switch.md","Switch",{"type":28,"value":29,"toc":477},"minimark",[30,34,38,267,272,402,406,436,440,473],[31,32,26],"h1",{"id":33},"switch",[35,36,37],"p",{},"The Switch component is a form control that allows users to toggle between two states. It provides a visual representation of a boolean value and can be customized with labels and different styles.",[39,40,41],"switch-example",{},[42,43,48],"pre",{"className":44,"code":45,"language":46,"meta":47,"style":47},"language-vue shiki shiki-themes vitesse-dark vitesse-light vitesse-dark","\u003Cscript setup lang=\"ts\">\nimport { Switch } from '@dolanske/vui'\nimport { ref } from 'vue'\n\nconst enabled = ref(false)\n\u003C/script>\n\n\u003Ctemplate>\n  \u003CSwitch v-model=\"enabled\" label=\"Enable feature\" />\n  \u003CSwitch v-model=\"enabled\" label=\"Disabled switch\" disabled />\n\u003C/template>\n","vue","",[49,50,51,87,114,134,141,166,176,181,191,225,258],"code",{"__ignoreMap":47},[52,53,56,60,64,68,71,74,78,82,84],"span",{"class":54,"line":55},"line",1,[52,57,59],{"class":58},"sP76a","\u003C",[52,61,63],{"class":62},"sKpE2","script",[52,65,67],{"class":66},"sflEz"," setup",[52,69,70],{"class":66}," lang",[52,72,73],{"class":58},"=",[52,75,77],{"class":76},"sBR95","\"",[52,79,81],{"class":80},"sfmH-","ts",[52,83,77],{"class":76},[52,85,86],{"class":58},">\n",[52,88,90,93,96,99,102,105,108,111],{"class":54,"line":89},2,[52,91,92],{"class":62},"import",[52,94,95],{"class":58}," {",[52,97,98],{"class":66}," Switch",[52,100,101],{"class":58}," }",[52,103,104],{"class":62}," from",[52,106,107],{"class":76}," '",[52,109,110],{"class":80},"@dolanske/vui",[52,112,113],{"class":76},"'\n",[52,115,117,119,121,124,126,128,130,132],{"class":54,"line":116},3,[52,118,92],{"class":62},[52,120,95],{"class":58},[52,122,123],{"class":66}," ref",[52,125,101],{"class":58},[52,127,104],{"class":62},[52,129,107],{"class":76},[52,131,46],{"class":80},[52,133,113],{"class":76},[52,135,137],{"class":54,"line":136},4,[52,138,140],{"emptyLinePlaceholder":139},true,"\n",[52,142,144,148,151,154,157,160,163],{"class":54,"line":143},5,[52,145,147],{"class":146},"sCMWV","const ",[52,149,150],{"class":66},"enabled",[52,152,153],{"class":58}," =",[52,155,123],{"class":156},"sRTv0",[52,158,159],{"class":58},"(",[52,161,162],{"class":62},"false",[52,164,165],{"class":58},")\n",[52,167,169,172,174],{"class":54,"line":168},6,[52,170,171],{"class":58},"\u003C/",[52,173,63],{"class":62},[52,175,86],{"class":58},[52,177,179],{"class":54,"line":178},7,[52,180,140],{"emptyLinePlaceholder":139},[52,182,184,186,189],{"class":54,"line":183},8,[52,185,59],{"class":58},[52,187,188],{"class":62},"template",[52,190,86],{"class":58},[52,192,194,197,199,202,204,206,208,210,213,215,217,220,222],{"class":54,"line":193},9,[52,195,196],{"class":58},"  \u003C",[52,198,26],{"class":62},[52,200,201],{"class":156}," v-model",[52,203,73],{"class":58},[52,205,77],{"class":58},[52,207,150],{"class":66},[52,209,77],{"class":58},[52,211,212],{"class":66}," label",[52,214,73],{"class":58},[52,216,77],{"class":76},[52,218,219],{"class":80},"Enable feature",[52,221,77],{"class":76},[52,223,224],{"class":58}," />\n",[52,226,228,230,232,234,236,238,240,242,244,246,248,251,253,256],{"class":54,"line":227},10,[52,229,196],{"class":58},[52,231,26],{"class":62},[52,233,201],{"class":156},[52,235,73],{"class":58},[52,237,77],{"class":58},[52,239,150],{"class":66},[52,241,77],{"class":58},[52,243,212],{"class":66},[52,245,73],{"class":58},[52,247,77],{"class":76},[52,249,250],{"class":80},"Disabled switch",[52,252,77],{"class":76},[52,254,255],{"class":66}," disabled",[52,257,224],{"class":58},[52,259,261,263,265],{"class":54,"line":260},11,[52,262,171],{"class":58},[52,264,188],{"class":62},[52,266,86],{"class":58},[268,269,271],"h3",{"id":270},"props","Props",[273,274,275,291],"table",{},[276,277,278],"thead",{},[279,280,281,285,288],"tr",{},[282,283,284],"th",{},"Name",[282,286,287],{},"Default",[282,289,290],{},"Type",[292,293,294,315,332,350,368,386],"tbody",{},[279,295,296,302,305],{},[297,298,299],"td",{},[49,300,301],{},"modelValue",[297,303,304],{},"—",[297,306,307,310,311,314],{},[49,308,309],{},"boolean"," ",[312,313],"br",{}," The current state of the switch",[279,316,317,322,324],{},[297,318,319],{},[49,320,321],{},"label",[297,323,304],{},[297,325,326,310,329,331],{},[49,327,328],{},"string",[312,330],{}," The label text for the switch",[279,333,334,339,343],{},[297,335,336],{},[49,337,338],{},"disabled",[297,340,341],{},[49,342,162],{},[297,344,345,310,347,349],{},[49,346,309],{},[312,348],{}," Whether the switch is disabled",[279,351,352,357,361],{},[297,353,354],{},[49,355,356],{},"accent",[297,358,359],{},[49,360,162],{},[297,362,363,310,365,367],{},[49,364,309],{},[312,366],{}," Whether to use the accent color",[279,369,370,375,379],{},[297,371,372],{},[49,373,374],{},"reversed",[297,376,377],{},[49,378,162],{},[297,380,381,310,383,385],{},[49,382,309],{},[312,384],{}," Reverses the switch and label positions",[279,387,388,393,395],{},[297,389,390],{},[49,391,392],{},"hint",[297,394,304],{},[297,396,397,310,399,401],{},[49,398,328],{},[312,400],{}," Helper text displayed below the switch",[268,403,405],{"id":404},"events","Events",[273,407,408,420],{},[276,409,410],{},[279,411,412,414,417],{},[282,413,284],{},[282,415,416],{},"Payload",[282,418,419],{},"Description",[292,421,422],{},[279,423,424,429,433],{},[297,425,426],{},[49,427,428],{},"update:modelValue",[297,430,431],{},[49,432,309],{},[297,434,435],{},"Emitted when the switch state changes",[268,437,439],{"id":438},"slots","Slots",[273,441,442,453],{},[276,443,444],{},[279,445,446,448,451],{},[282,447,284],{},[282,449,450],{},"Accepts",[282,452,419],{},[292,454,455],{},[279,456,457,462,467],{},[297,458,459],{},[49,460,461],{},"default",[297,463,464],{},[49,465,466],{},"any",[297,468,469,470,472],{},"Content to be displayed as the label (overrides the ",[49,471,321],{}," prop if provided)",[474,475,476],"style",{},"html pre.shiki code .sP76a, html code.shiki .sP76a{--shiki-dark:#666666;--shiki-light:#999999;--shiki-default:#666666}html pre.shiki code .sKpE2, html code.shiki .sKpE2{--shiki-dark:#4D9375;--shiki-light:#1E754F;--shiki-default:#4D9375}html pre.shiki code .sflEz, html code.shiki .sflEz{--shiki-dark:#BD976A;--shiki-light:#B07D48;--shiki-default:#BD976A}html pre.shiki code .sBR95, html code.shiki .sBR95{--shiki-dark:#C98A7D77;--shiki-light:#B5695977;--shiki-default:#C98A7D77}html pre.shiki code .sfmH-, html code.shiki .sfmH-{--shiki-dark:#C98A7D;--shiki-light:#B56959;--shiki-default:#C98A7D}html pre.shiki code .sCMWV, html code.shiki .sCMWV{--shiki-dark:#CB7676;--shiki-light:#AB5959;--shiki-default:#CB7676}html pre.shiki code .sRTv0, html code.shiki .sRTv0{--shiki-dark:#80A665;--shiki-light:#59873A;--shiki-default:#80A665}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);}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}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);}",{"title":47,"searchDepth":89,"depth":89,"links":478},[479,480,481],{"id":270,"depth":116,"text":271},{"id":404,"depth":116,"text":405},{"id":438,"depth":116,"text":439},"md",{},"/docs/components/switch",{"title":26,"description":37},"docs/components/switch","bLeHdHpvuT9_17fHPuNkNLKz6a4Ws_tSb86q807LDlA",1777992281708]