[{"data":1,"prerenderedAt":1186},["ShallowReactive",2],{"navigation_docs":3,"-composables-use-confirm":212,"-composables-use-confirm-surround":1181},[4,18,182],{"title":5,"path":6,"stem":7,"children":8,"icon":17},"Get Started","\u002Fgetting-started","1.getting-started\u002F1.index",[9,12],{"title":10,"path":6,"stem":7,"icon":11},"Introduction","i-lucide-house",{"title":13,"path":14,"stem":15,"icon":16},"Installation","\u002Fgetting-started\u002Finstallation","1.getting-started\u002F2.installation","i-lucide-download","i-lucide-square-play",{"title":19,"icon":20,"path":21,"stem":22,"children":23,"page":69},"Components","i-lucide-square-code","\u002Fcomponents","2.components",[24,70,135,160,173],{"title":25,"path":26,"stem":27,"children":28,"page":69},"Elements","\u002Fcomponents\u002Felements","2.components\u002F1.elements",[29,33,37,41,45,49,53,57,61,65],{"title":30,"path":31,"stem":32},"Alert","\u002Fcomponents\u002Felements\u002Falert","2.components\u002F1.elements\u002F01.alert",{"title":34,"path":35,"stem":36},"Avatar","\u002Fcomponents\u002Felements\u002Favatar","2.components\u002F1.elements\u002F02.avatar",{"title":38,"path":39,"stem":40},"Avatar group","\u002Fcomponents\u002Felements\u002Favatar-group","2.components\u002F1.elements\u002F03.avatar-group",{"title":42,"path":43,"stem":44},"Badge","\u002Fcomponents\u002Felements\u002Fbadge","2.components\u002F1.elements\u002F04.badge",{"title":46,"path":47,"stem":48},"Button","\u002Fcomponents\u002Felements\u002Fbutton","2.components\u002F1.elements\u002F05.button",{"title":50,"path":51,"stem":52},"Circular progress","\u002Fcomponents\u002Felements\u002Fcircular-progress","2.components\u002F1.elements\u002F06.circular-progress",{"title":54,"path":55,"stem":56},"Loading dots","\u002Fcomponents\u002Felements\u002Floading-dots","2.components\u002F1.elements\u002F07.loading-dots",{"title":58,"path":59,"stem":60},"Loading indicator","\u002Fcomponents\u002Felements\u002Floading-indicator","2.components\u002F1.elements\u002F08.loading-indicator",{"title":62,"path":63,"stem":64},"Separator","\u002Fcomponents\u002Felements\u002Fseparator","2.components\u002F1.elements\u002F09.separator",{"title":66,"path":67,"stem":68},"Text link","\u002Fcomponents\u002Felements\u002Ftext-link","2.components\u002F1.elements\u002F10.text-link",false,{"title":71,"path":72,"stem":73,"children":74,"page":69},"Forms","\u002Fcomponents\u002Fforms","2.components\u002F2.forms",[75,79,83,87,91,95,99,103,107,111,115,119,123,127,131],{"title":76,"path":77,"stem":78},"Checkbox","\u002Fcomponents\u002Fforms\u002Fcheckbox","2.components\u002F2.forms\u002F01.checkbox",{"title":80,"path":81,"stem":82},"Date picker","\u002Fcomponents\u002Fforms\u002Fdate-picker","2.components\u002F2.forms\u002F02.date-picker",{"title":84,"path":85,"stem":86},"Date picker field","\u002Fcomponents\u002Fforms\u002Fdate-picker-field","2.components\u002F2.forms\u002F03.date-picker-field",{"title":88,"path":89,"stem":90},"Date range picker","\u002Fcomponents\u002Fforms\u002Fdate-range-picker","2.components\u002F2.forms\u002F04.date-range-picker",{"title":92,"path":93,"stem":94},"Date range picker field","\u002Fcomponents\u002Fforms\u002Fdate-range-picker-field","2.components\u002F2.forms\u002F05.date-range-picker-field",{"title":96,"path":97,"stem":98},"Input","\u002Fcomponents\u002Fforms\u002Finput","2.components\u002F2.forms\u002F06.input",{"title":100,"path":101,"stem":102},"Radio group","\u002Fcomponents\u002Fforms\u002Fradio-group","2.components\u002F2.forms\u002F07.radio-group",{"title":104,"path":105,"stem":106},"Range slider","\u002Fcomponents\u002Fforms\u002Frange-slider","2.components\u002F2.forms\u002F08.range-slider",{"title":108,"path":109,"stem":110},"Segmented control","\u002Fcomponents\u002Fforms\u002Fsegmented-control","2.components\u002F2.forms\u002F09.segmented-control",{"title":112,"path":113,"stem":114},"Select","\u002Fcomponents\u002Fforms\u002Fselect","2.components\u002F2.forms\u002F10.select",{"title":116,"path":117,"stem":118},"Select field","\u002Fcomponents\u002Fforms\u002Fselect-field","2.components\u002F2.forms\u002F11.select-field",{"title":120,"path":121,"stem":122},"Slider","\u002Fcomponents\u002Fforms\u002Fslider","2.components\u002F2.forms\u002F12.slider",{"title":124,"path":125,"stem":126},"Switch","\u002Fcomponents\u002Fforms\u002Fswitch","2.components\u002F2.forms\u002F13.switch",{"title":128,"path":129,"stem":130},"Text field","\u002Fcomponents\u002Fforms\u002Ftext-field","2.components\u002F2.forms\u002F14.text-field",{"title":132,"path":133,"stem":134},"Textarea","\u002Fcomponents\u002Fforms\u002Ftextarea","2.components\u002F2.forms\u002F15.textarea",{"title":136,"path":137,"stem":138,"children":139,"page":69},"Overlays","\u002Fcomponents\u002Foverlays","2.components\u002F3.overlays",[140,144,148,152,156],{"title":141,"path":142,"stem":143},"Drawer","\u002Fcomponents\u002Foverlays\u002Fdrawer","2.components\u002F3.overlays\u002F1.drawer",{"title":145,"path":146,"stem":147},"Menu","\u002Fcomponents\u002Foverlays\u002Fmenu","2.components\u002F3.overlays\u002F2.menu",{"title":149,"path":150,"stem":151},"Modal","\u002Fcomponents\u002Foverlays\u002Fmodal","2.components\u002F3.overlays\u002F3.modal",{"title":153,"path":154,"stem":155},"Popover","\u002Fcomponents\u002Foverlays\u002Fpopover","2.components\u002F3.overlays\u002F4.popover",{"title":157,"path":158,"stem":159},"Tooltip","\u002Fcomponents\u002Foverlays\u002Ftooltip","2.components\u002F3.overlays\u002F5.tooltip",{"title":161,"path":162,"stem":163,"children":164,"page":69},"Data","\u002Fcomponents\u002Fdata","2.components\u002F4.data",[165,169],{"title":166,"path":167,"stem":168},"Table","\u002Fcomponents\u002Fdata\u002Ftable","2.components\u002F4.data\u002F1.table",{"title":170,"path":171,"stem":172},"Pagination","\u002Fcomponents\u002Fdata\u002Fpagination","2.components\u002F4.data\u002F2.pagination",{"title":174,"path":175,"stem":176,"children":177,"page":69},"Navigation","\u002Fcomponents\u002Fnavigation","2.components\u002F5.navigation",[178],{"title":179,"path":180,"stem":181},"Sidebar","\u002Fcomponents\u002Fnavigation\u002Fsidebar","2.components\u002F5.navigation\u002F1.sidebar",{"title":183,"icon":184,"path":185,"stem":186,"children":187,"page":69},"Composables","i-lucide-square-function","\u002Fcomposables","3.composables",[188,192,196,200,204,208],{"title":189,"path":190,"stem":191},"useConfirm","\u002Fcomposables\u002Fuse-confirm","3.composables\u002F1.use-confirm",{"title":193,"path":194,"stem":195},"useMask","\u002Fcomposables\u002Fuse-mask","3.composables\u002F2.use-mask",{"title":197,"path":198,"stem":199},"useOverlay","\u002Fcomposables\u002Fuse-overlay","3.composables\u002F3.use-overlay",{"title":201,"path":202,"stem":203},"useRowSelection","\u002Fcomposables\u002Fuse-row-selection","3.composables\u002F4.use-row-selection",{"title":205,"path":206,"stem":207},"useShortcuts","\u002Fcomposables\u002Fuse-shortcuts","3.composables\u002F5.use-shortcuts",{"title":209,"path":210,"stem":211},"useTableRows","\u002Fcomposables\u002Fuse-table-rows","3.composables\u002F6.use-table-rows",{"id":213,"title":189,"body":214,"description":1175,"extension":1176,"links":1177,"meta":1178,"navigation":352,"path":190,"seo":1179,"stem":191,"__hash__":1180},"docs\u002F3.composables\u002F1.use-confirm.md",{"type":215,"value":216,"toc":1170},"minimark",[217,222,245,723,741,745,843,849,1129,1133,1161,1166],[218,219,221],"h2",{"id":220},"usage","Usage",[223,224,225,228,229,232,233,236,237,240,241,244],"p",{},[226,227,189],"code",{}," gives a ",[226,230,231],{},"confirm"," function. Call it with a title: it opens a small ",[234,235,149],"a",{"href":150}," and resolves with ",[226,238,239],{},"true"," when the user confirms, or ",[226,242,243],{},"false"," when they cancel.",[246,247,248,251],"code-preview",{},[249,250],"use-confirm-usage-example",{},[252,253,255],"template",{"v-slot:code":254},"",[256,257,261],"pre",{"className":258,"code":259,"language":260,"meta":254,"style":254},"language-vue shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\u003Cscript setup lang=\"ts\">\nimport { useConfirm } from '@kuina-ui\u002Fvue'\nimport { ref } from 'vue'\n\nconst confirm = useConfirm()\nconst transactionStatus = ref('The transaction is still there.')\n\nasync function deleteTransaction() {\n  const isConfirmed = await confirm({\n    title: 'Delete transaction?',\n    description: \"This will permanently delete the Acme Corp payment of $4,850.00. This can't be undone.\",\n    confirmLabel: 'Delete transaction',\n    destructive: true,\n  })\n\n  transactionStatus.value = isConfirmed ? 'The transaction was deleted.' : 'The transaction is still there.'\n}\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003Cdiv class=\"flex flex-wrap items-center gap-3\">\n    \u003CKButton label=\"Delete transaction\" variant=\"soft\" color=\"danger\" @click=\"deleteTransaction\" \u002F>\n    \u003Cp class=\"text-sm text-muted\">{{ transactionStatus }}\u003C\u002Fp>\n  \u003C\u002Fdiv>\n\u003C\u002Ftemplate>\n","vue",[226,262,263,298,327,347,354,371,397,402,420,443,462,480,497,511,519,524,559,565,575,580,589,612,674,704,714],{"__ignoreMap":254},[264,265,268,272,276,280,283,286,289,293,295],"span",{"class":266,"line":267},"line",1,[264,269,271],{"class":270},"sMK4o","\u003C",[264,273,275],{"class":274},"swJcz","script",[264,277,279],{"class":278},"spNyl"," setup",[264,281,282],{"class":278}," lang",[264,284,285],{"class":270},"=",[264,287,288],{"class":270},"\"",[264,290,292],{"class":291},"sfazB","ts",[264,294,288],{"class":270},[264,296,297],{"class":270},">\n",[264,299,301,305,308,312,315,318,321,324],{"class":266,"line":300},2,[264,302,304],{"class":303},"s7zQu","import",[264,306,307],{"class":270}," {",[264,309,311],{"class":310},"sTEyZ"," useConfirm",[264,313,314],{"class":270}," }",[264,316,317],{"class":303}," from",[264,319,320],{"class":270}," '",[264,322,323],{"class":291},"@kuina-ui\u002Fvue",[264,325,326],{"class":270},"'\n",[264,328,330,332,334,337,339,341,343,345],{"class":266,"line":329},3,[264,331,304],{"class":303},[264,333,307],{"class":270},[264,335,336],{"class":310}," ref",[264,338,314],{"class":270},[264,340,317],{"class":303},[264,342,320],{"class":270},[264,344,260],{"class":291},[264,346,326],{"class":270},[264,348,350],{"class":266,"line":349},4,[264,351,353],{"emptyLinePlaceholder":352},true,"\n",[264,355,357,360,363,365,368],{"class":266,"line":356},5,[264,358,359],{"class":278},"const",[264,361,362],{"class":310}," confirm ",[264,364,285],{"class":270},[264,366,311],{"class":367},"s2Zo4",[264,369,370],{"class":310},"()\n",[264,372,374,376,379,381,383,386,389,392,394],{"class":266,"line":373},6,[264,375,359],{"class":278},[264,377,378],{"class":310}," transactionStatus ",[264,380,285],{"class":270},[264,382,336],{"class":367},[264,384,385],{"class":310},"(",[264,387,388],{"class":270},"'",[264,390,391],{"class":291},"The transaction is still there.",[264,393,388],{"class":270},[264,395,396],{"class":310},")\n",[264,398,400],{"class":266,"line":399},7,[264,401,353],{"emptyLinePlaceholder":352},[264,403,405,408,411,414,417],{"class":266,"line":404},8,[264,406,407],{"class":278},"async",[264,409,410],{"class":278}," function",[264,412,413],{"class":367}," deleteTransaction",[264,415,416],{"class":270},"()",[264,418,419],{"class":270}," {\n",[264,421,423,426,429,432,435,438,440],{"class":266,"line":422},9,[264,424,425],{"class":278},"  const",[264,427,428],{"class":310}," isConfirmed",[264,430,431],{"class":270}," =",[264,433,434],{"class":303}," await",[264,436,437],{"class":367}," confirm",[264,439,385],{"class":274},[264,441,442],{"class":270},"{\n",[264,444,446,449,452,454,457,459],{"class":266,"line":445},10,[264,447,448],{"class":274},"    title",[264,450,451],{"class":270},":",[264,453,320],{"class":270},[264,455,456],{"class":291},"Delete transaction?",[264,458,388],{"class":270},[264,460,461],{"class":270},",\n",[264,463,465,468,470,473,476,478],{"class":266,"line":464},11,[264,466,467],{"class":274},"    description",[264,469,451],{"class":270},[264,471,472],{"class":270}," \"",[264,474,475],{"class":291},"This will permanently delete the Acme Corp payment of $4,850.00. This can't be undone.",[264,477,288],{"class":270},[264,479,461],{"class":270},[264,481,483,486,488,490,493,495],{"class":266,"line":482},12,[264,484,485],{"class":274},"    confirmLabel",[264,487,451],{"class":270},[264,489,320],{"class":270},[264,491,492],{"class":291},"Delete transaction",[264,494,388],{"class":270},[264,496,461],{"class":270},[264,498,500,503,505,509],{"class":266,"line":499},13,[264,501,502],{"class":274},"    destructive",[264,504,451],{"class":270},[264,506,508],{"class":507},"sfNiH"," true",[264,510,461],{"class":270},[264,512,514,517],{"class":266,"line":513},14,[264,515,516],{"class":270},"  }",[264,518,396],{"class":274},[264,520,522],{"class":266,"line":521},15,[264,523,353],{"emptyLinePlaceholder":352},[264,525,527,530,533,536,538,540,543,545,548,550,553,555,557],{"class":266,"line":526},16,[264,528,529],{"class":310},"  transactionStatus",[264,531,532],{"class":270},".",[264,534,535],{"class":310},"value",[264,537,431],{"class":270},[264,539,428],{"class":310},[264,541,542],{"class":270}," ?",[264,544,320],{"class":270},[264,546,547],{"class":291},"The transaction was deleted.",[264,549,388],{"class":270},[264,551,552],{"class":270}," :",[264,554,320],{"class":270},[264,556,391],{"class":291},[264,558,326],{"class":270},[264,560,562],{"class":266,"line":561},17,[264,563,564],{"class":270},"}\n",[264,566,568,571,573],{"class":266,"line":567},18,[264,569,570],{"class":270},"\u003C\u002F",[264,572,275],{"class":274},[264,574,297],{"class":270},[264,576,578],{"class":266,"line":577},19,[264,579,353],{"emptyLinePlaceholder":352},[264,581,583,585,587],{"class":266,"line":582},20,[264,584,271],{"class":270},[264,586,252],{"class":274},[264,588,297],{"class":270},[264,590,592,595,598,601,603,605,608,610],{"class":266,"line":591},21,[264,593,594],{"class":270},"  \u003C",[264,596,597],{"class":274},"div",[264,599,600],{"class":278}," class",[264,602,285],{"class":270},[264,604,288],{"class":270},[264,606,607],{"class":291},"flex flex-wrap items-center gap-3",[264,609,288],{"class":270},[264,611,297],{"class":270},[264,613,615,618,621,624,626,628,630,632,635,637,639,642,644,647,649,651,654,656,659,662,664,666,669,671],{"class":266,"line":614},22,[264,616,617],{"class":270},"    \u003C",[264,619,620],{"class":274},"KButton",[264,622,623],{"class":278}," label",[264,625,285],{"class":270},[264,627,288],{"class":270},[264,629,492],{"class":291},[264,631,288],{"class":270},[264,633,634],{"class":278}," variant",[264,636,285],{"class":270},[264,638,288],{"class":270},[264,640,641],{"class":291},"soft",[264,643,288],{"class":270},[264,645,646],{"class":278}," color",[264,648,285],{"class":270},[264,650,288],{"class":270},[264,652,653],{"class":291},"danger",[264,655,288],{"class":270},[264,657,658],{"class":270}," @",[264,660,661],{"class":278},"click",[264,663,285],{"class":270},[264,665,288],{"class":270},[264,667,668],{"class":310},"deleteTransaction",[264,670,288],{"class":270},[264,672,673],{"class":270}," \u002F>\n",[264,675,677,679,681,683,685,687,690,692,695,698,700,702],{"class":266,"line":676},23,[264,678,617],{"class":270},[264,680,223],{"class":274},[264,682,600],{"class":278},[264,684,285],{"class":270},[264,686,288],{"class":270},[264,688,689],{"class":291},"text-sm text-muted",[264,691,288],{"class":270},[264,693,694],{"class":270},">",[264,696,697],{"class":310},"{{ transactionStatus }}",[264,699,570],{"class":270},[264,701,223],{"class":274},[264,703,297],{"class":270},[264,705,707,710,712],{"class":266,"line":706},24,[264,708,709],{"class":270},"  \u003C\u002F",[264,711,597],{"class":274},[264,713,297],{"class":270},[264,715,717,719,721],{"class":266,"line":716},25,[264,718,570],{"class":270},[264,720,252],{"class":274},[264,722,297],{"class":270},[223,724,725,727,728,731,732,735,736,738,739,532],{},[226,726,189],{}," shows its modal through ",[226,729,730],{},"KOverlayHost",": add it once at the root of your app, as explained in ",[234,733,197],{"href":734},"\u002Fcomposables\u002Fuse-overlay#setup",". With the Nuxt module, ",[226,737,189],{}," is auto-imported. In a Vue app, import it from ",[226,740,323],{},[218,742,744],{"id":743},"options","Options",[746,747,748,764],"table",{},[749,750,751],"thead",{},[752,753,754,758,761],"tr",{},[755,756,757],"th",{},"Option",[755,759,760],{},"Type",[755,762,763],{},"Default",[765,766,767,782,795,811,827],"tbody",{},[752,768,769,775,780],{},[770,771,772],"td",{},[226,773,774],{},"title",[770,776,777],{},[226,778,779],{},"string",[770,781],{},[752,783,784,789,793],{},[770,785,786],{},[226,787,788],{},"description",[770,790,791],{},[226,792,779],{},[770,794],{},[752,796,797,802,806],{},[770,798,799],{},[226,800,801],{},"confirmLabel",[770,803,804],{},[226,805,779],{},[770,807,808],{},[226,809,810],{},"'Confirm'",[752,812,813,818,822],{},[770,814,815],{},[226,816,817],{},"cancelLabel",[770,819,820],{},[226,821,779],{},[770,823,824],{},[226,825,826],{},"'Cancel'",[752,828,829,834,839],{},[770,830,831],{},[226,832,833],{},"destructive",[770,835,836],{},[226,837,838],{},"boolean",[770,840,841],{},[226,842,243],{},[223,844,845,846,848],{},"Without ",[226,847,833],{},", the confirm button is the main button. With it, the button turns red, for an action that deletes or can't be undone.",[256,850,852],{"className":258,"code":851,"language":260,"meta":254,"style":254},"\u003Cscript setup lang=\"ts\">\nimport { useConfirm } from '@kuina-ui\u002Fvue'\nimport { ref } from 'vue'\n\nconst confirm = useConfirm()\nconst isBudgetArchived = ref(false)\n\nasync function archiveBudget() {\n  isBudgetArchived.value = await confirm({\n    title: 'Archive budget?',\n    description: 'You can find it again in your archived budgets.',\n    confirmLabel: 'Archive',\n  })\n}\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003CKButton label=\"Archive budget\" variant=\"soft\" color=\"gray\" :disabled=\"isBudgetArchived\" @click=\"archiveBudget\" \u002F>\n\u003C\u002Ftemplate>\n",[226,853,854,874,892,910,914,926,943,947,960,979,994,1009,1024,1030,1034,1042,1046,1054,1121],{"__ignoreMap":254},[264,855,856,858,860,862,864,866,868,870,872],{"class":266,"line":267},[264,857,271],{"class":270},[264,859,275],{"class":274},[264,861,279],{"class":278},[264,863,282],{"class":278},[264,865,285],{"class":270},[264,867,288],{"class":270},[264,869,292],{"class":291},[264,871,288],{"class":270},[264,873,297],{"class":270},[264,875,876,878,880,882,884,886,888,890],{"class":266,"line":300},[264,877,304],{"class":303},[264,879,307],{"class":270},[264,881,311],{"class":310},[264,883,314],{"class":270},[264,885,317],{"class":303},[264,887,320],{"class":270},[264,889,323],{"class":291},[264,891,326],{"class":270},[264,893,894,896,898,900,902,904,906,908],{"class":266,"line":329},[264,895,304],{"class":303},[264,897,307],{"class":270},[264,899,336],{"class":310},[264,901,314],{"class":270},[264,903,317],{"class":303},[264,905,320],{"class":270},[264,907,260],{"class":291},[264,909,326],{"class":270},[264,911,912],{"class":266,"line":349},[264,913,353],{"emptyLinePlaceholder":352},[264,915,916,918,920,922,924],{"class":266,"line":356},[264,917,359],{"class":278},[264,919,362],{"class":310},[264,921,285],{"class":270},[264,923,311],{"class":367},[264,925,370],{"class":310},[264,927,928,930,933,935,937,939,941],{"class":266,"line":373},[264,929,359],{"class":278},[264,931,932],{"class":310}," isBudgetArchived ",[264,934,285],{"class":270},[264,936,336],{"class":367},[264,938,385],{"class":310},[264,940,243],{"class":507},[264,942,396],{"class":310},[264,944,945],{"class":266,"line":399},[264,946,353],{"emptyLinePlaceholder":352},[264,948,949,951,953,956,958],{"class":266,"line":404},[264,950,407],{"class":278},[264,952,410],{"class":278},[264,954,955],{"class":367}," archiveBudget",[264,957,416],{"class":270},[264,959,419],{"class":270},[264,961,962,965,967,969,971,973,975,977],{"class":266,"line":422},[264,963,964],{"class":310},"  isBudgetArchived",[264,966,532],{"class":270},[264,968,535],{"class":310},[264,970,431],{"class":270},[264,972,434],{"class":303},[264,974,437],{"class":367},[264,976,385],{"class":274},[264,978,442],{"class":270},[264,980,981,983,985,987,990,992],{"class":266,"line":445},[264,982,448],{"class":274},[264,984,451],{"class":270},[264,986,320],{"class":270},[264,988,989],{"class":291},"Archive budget?",[264,991,388],{"class":270},[264,993,461],{"class":270},[264,995,996,998,1000,1002,1005,1007],{"class":266,"line":464},[264,997,467],{"class":274},[264,999,451],{"class":270},[264,1001,320],{"class":270},[264,1003,1004],{"class":291},"You can find it again in your archived budgets.",[264,1006,388],{"class":270},[264,1008,461],{"class":270},[264,1010,1011,1013,1015,1017,1020,1022],{"class":266,"line":482},[264,1012,485],{"class":274},[264,1014,451],{"class":270},[264,1016,320],{"class":270},[264,1018,1019],{"class":291},"Archive",[264,1021,388],{"class":270},[264,1023,461],{"class":270},[264,1025,1026,1028],{"class":266,"line":499},[264,1027,516],{"class":270},[264,1029,396],{"class":274},[264,1031,1032],{"class":266,"line":513},[264,1033,564],{"class":270},[264,1035,1036,1038,1040],{"class":266,"line":521},[264,1037,570],{"class":270},[264,1039,275],{"class":274},[264,1041,297],{"class":270},[264,1043,1044],{"class":266,"line":526},[264,1045,353],{"emptyLinePlaceholder":352},[264,1047,1048,1050,1052],{"class":266,"line":561},[264,1049,271],{"class":270},[264,1051,252],{"class":274},[264,1053,297],{"class":270},[264,1055,1056,1058,1060,1062,1064,1066,1069,1071,1073,1075,1077,1079,1081,1083,1085,1087,1090,1092,1094,1097,1099,1101,1104,1106,1108,1110,1112,1114,1117,1119],{"class":266,"line":567},[264,1057,594],{"class":270},[264,1059,620],{"class":274},[264,1061,623],{"class":278},[264,1063,285],{"class":270},[264,1065,288],{"class":270},[264,1067,1068],{"class":291},"Archive budget",[264,1070,288],{"class":270},[264,1072,634],{"class":278},[264,1074,285],{"class":270},[264,1076,288],{"class":270},[264,1078,641],{"class":291},[264,1080,288],{"class":270},[264,1082,646],{"class":278},[264,1084,285],{"class":270},[264,1086,288],{"class":270},[264,1088,1089],{"class":291},"gray",[264,1091,288],{"class":270},[264,1093,552],{"class":270},[264,1095,1096],{"class":278},"disabled",[264,1098,285],{"class":270},[264,1100,288],{"class":270},[264,1102,1103],{"class":310},"isBudgetArchived",[264,1105,288],{"class":270},[264,1107,658],{"class":270},[264,1109,661],{"class":278},[264,1111,285],{"class":270},[264,1113,288],{"class":270},[264,1115,1116],{"class":310},"archiveBudget",[264,1118,288],{"class":270},[264,1120,673],{"class":270},[264,1122,1123,1125,1127],{"class":266,"line":577},[264,1124,570],{"class":270},[264,1126,252],{"class":274},[264,1128,297],{"class":270},[218,1130,1132],{"id":1131},"behavior","Behavior",[1134,1135,1136,1150,1158],"ul",{},[1137,1138,1139,1140,1144,1145,1149],"li",{},"The modal is an alert for screen readers, and the focus starts on ",[1141,1142,1143],"strong",{},"Cancel",", so a quick ",[1146,1147],"kbd",{"value":1148},"Enter"," does no harm.",[1137,1151,1152,1155,1156,532],{},[1146,1153],{"value":1154},"Esc",", the close button and a click outside count as a cancel, and resolve with ",[226,1157,243],{},[1137,1159,1160],{},"The promise resolves as soon as the user answers, while the modal is still fading out.",[223,1162,1163,1164,532],{},"To ask for more than yes or no, like a reason or a new name, write your own modal and open it with ",[234,1165,197],{"href":198},[1167,1168,1169],"style",{},"html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .swJcz, html code.shiki .swJcz{--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178}html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .s7zQu, html code.shiki .s7zQu{--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}html pre.shiki code .sfNiH, html code.shiki .sfNiH{--shiki-light:#FF5370;--shiki-default:#FF9CAC;--shiki-dark:#FF9CAC}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);}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":254,"searchDepth":300,"depth":300,"links":1171},[1172,1173,1174],{"id":220,"depth":300,"text":221},{"id":743,"depth":300,"text":744},{"id":1131,"depth":300,"text":1132},"Ask the user to confirm an action in a small modal, and wait for the answer.","md",null,{},{"title":189,"description":1175},"UqhCTa1JFDIuTA0y1aAU_PcINGMwMqdzGCt9K8sJK5c",[1182,1184],{"title":179,"path":180,"stem":181,"description":1183,"children":-1},"The main navigation of an app, a column of icons that shows its labels on hover, when pinned open, and as a drawer on small screens.",{"title":193,"path":194,"stem":195,"description":1185,"children":-1},"Format what the user types in an input, like a card number, a phone number or a time.",1795933333357]