[{"data":1,"prerenderedAt":2259},["ShallowReactive",2],{"navigation_docs":3,"-guides-floating-ui":107,"-guides-floating-ui-surround":2254},[4,26,57,87,97],{"title":5,"icon":6,"path":7,"stem":8,"children":9,"page":25},"Getting Started","i-lucide-rocket","\u002Fgetting-started","1.getting-started",[10,15,20],{"title":11,"path":12,"stem":13,"icon":14},"Introduction","\u002Fgetting-started\u002Fintroduction","1.getting-started\u002F1.introduction","i-lucide-book-open",{"title":16,"path":17,"stem":18,"icon":19},"Installation","\u002Fgetting-started\u002Finstallation","1.getting-started\u002F2.installation","i-lucide-download",{"title":21,"path":22,"stem":23,"icon":24},"Architecture","\u002Fgetting-started\u002Farchitecture","1.getting-started\u002F3.architecture","i-lucide-workflow",false,{"title":27,"icon":28,"path":29,"stem":30,"children":31,"page":25},"Reference","i-lucide-layers","\u002Freference","2.reference",[32,37,42,47,52],{"title":33,"path":34,"stem":35,"icon":36},"VirtualGrid","\u002Freference\u002Fvirtual-grid","2.reference\u002F1.virtual-grid","i-lucide-table-2",{"title":38,"path":39,"stem":40,"icon":41},"Primitives","\u002Freference\u002Fprimitives","2.reference\u002F2.primitives","i-lucide-crosshair",{"title":43,"path":44,"stem":45,"icon":46},"Utilities","\u002Freference\u002Futilities","2.reference\u002F3.utilities","i-lucide-wrench",{"title":48,"path":49,"stem":50,"icon":51},"Benchmarks","\u002Freference\u002Fbenchmarks","2.reference\u002F4.benchmarks","i-lucide-timer",{"title":53,"path":54,"stem":55,"icon":56},"ARIA patterns","\u002Freference\u002Faria-patterns","2.reference\u002F6.aria-patterns","i-lucide-accessibility",{"title":58,"icon":59,"path":60,"stem":61,"children":62,"page":25},"Guides","i-lucide-compass","\u002Fguides","3.guides",[63,67,72,77,82],{"title":64,"path":65,"stem":66,"icon":56},"Accessibility","\u002Fguides\u002Faccessibility","3.guides\u002F1.accessibility",{"title":68,"path":69,"stem":70,"icon":71},"Popovers and overlays","\u002Fguides\u002Fpopovers","3.guides\u002F2.popovers","i-lucide-message-square",{"title":73,"path":74,"stem":75,"icon":76},"Floating UI","\u002Fguides\u002Ffloating-ui","3.guides\u002F3.floating-ui","i-lucide-layers-2",{"title":78,"path":79,"stem":80,"icon":81},"Sizing and direction","\u002Fguides\u002Fsizing-and-direction","3.guides\u002F4.sizing-and-direction","i-lucide-move",{"title":83,"path":84,"stem":85,"icon":86},"Performance","\u002Fguides\u002Fperformance","3.guides\u002F5.performance","i-lucide-gauge",{"title":88,"icon":89,"path":90,"stem":91,"children":92,"page":25},"Examples","i-lucide-flask-conical","\u002Fexamples","4.examples",[93],{"title":94,"path":95,"stem":96,"icon":56},"ARIA examples","\u002Fexamples\u002Faria","4.examples\u002F1.aria",{"title":98,"icon":99,"path":100,"stem":101,"children":102,"page":25},"Changes","i-lucide-history","\u002Fchanges","5.changes",[103],{"title":104,"path":105,"stem":106,"icon":99},"Changelog","\u002Fchanges\u002Fchangelog","5.changes\u002F1.changelog",{"id":108,"title":73,"body":109,"description":2247,"extension":2248,"links":2249,"meta":2250,"navigation":2251,"path":74,"seo":2252,"stem":75,"__hash__":2253},"docs\u002F3.guides\u002F3.floating-ui.md",{"type":110,"value":111,"toc":2233},"minimark",[112,123,134,137,140,145,170,1743,1750,1761,1868,1890,1897,1917,2138,2148,2213,2230],[113,114,115,116,122],"p",{},"In this guide you position a floating element next to a grid item with ",[117,118,73],"a",{"href":119,"rel":120},"https:\u002F\u002Ffloating-ui.com",[121],"nofollow",", including flipping and shifting when the item is near the edge of the scroll container. Floating UI is a library that positions one element next to another.",[113,124,125,126,130,131,133],{},"Floating UI measures its reference element with ",[127,128,129],"code",{},"getBoundingClientRect()",". A virtual item that scrolled out of the grid has no element to measure. Floating UI accepts a plain object with a ",[127,132,129],{}," method, called a virtual element. You give it the rectangle the grid computes for the index, so the floating element keeps working when the item is not in the DOM.",[135,136],"floating-demo",{},[113,138,139],{},"In the demo, the popover keeps following the clicked item after you scroll far enough that the item is no longer in the DOM.",[141,142,144],"h2",{"id":143},"build-the-virtual-element","Build the virtual element",[113,146,147,148,151,152,155,156,158,159,165,166,169],{},"The rectangle comes from ",[127,149,150],{},"getItemRect",". Set ",[127,153,154],{},"root"," to the grid element, so the rectangle holds viewport coordinates, as ",[127,157,129],{}," does. The ",[117,160,162],{"href":161},"\u002Freference\u002Fprimitives#query-objects",[127,163,164],{},"rect"," field has the fields of a ",[127,167,168],{},"DOMRect",", so Floating UI can read it as the reference rectangle.",[171,172,174,179,193,199,670,677,925,938,945,959,1235,1268,1272,1281,1456,1483,1553,1557,1575,1706,1727,1731,1737],"steps",{"level":173},"3",[175,176,178],"h3",{"id":177},"create-the-query-and-the-virtual-element","Create the query and the virtual element",[113,180,181,182,184,185,188,189,192],{},"Create the query once. The virtual element updates the query, calls ",[127,183,150],{},", and returns ",[127,186,187],{},"query.rect",". Reusing one query object avoids a new rectangle on every scroll event. Put the virtual element in a ",[127,190,191],{},"shallowRef",". The object never changes, so it does not need deep reactivity.",[113,194,195,196,198],{},"The grid uses the scroll container, column tracks and probe from ",[117,197,78],{"href":79},".",[200,201,206],"pre",{"className":202,"code":203,"language":204,"meta":205,"style":205},"language-vue shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\u003Cscript setup>\nimport { ref, shallowRef, useTemplateRef } from \"vue\";\nimport { createPageProvider } from \"vvirtual-grid\u002Fvue\";\nimport { createRectQuery, getItemRect } from \"vvirtual-grid\u002Fprimitives\";\n\nconst items = Array.from({ length: 10000 }, (_, i) => ({ title: `Item ${i + 1}` }));\nconst pageProvider = createPageProvider(items);\nconst grid = useTemplateRef(\"grid\");\nconst anchored = ref(-1);\nconst query = createRectQuery();\n\nconst reference = shallowRef({\n  getBoundingClientRect() {\n    query.root = grid.value.$el;\n    query.index = anchored.value;\n    query.layout = grid.value.measurement;\n    getItemRect(query);\n    return query.rect;\n  },\n});\n\u003C\u002Fscript>\n","vue","",[127,207,208,228,271,294,322,329,424,441,466,490,507,512,529,540,568,589,614,629,644,650,660],{"__ignoreMap":205},[209,210,213,217,221,225],"span",{"class":211,"line":212},"line",1,[209,214,216],{"class":215},"sMK4o","\u003C",[209,218,220],{"class":219},"swJcz","script",[209,222,224],{"class":223},"spNyl"," setup",[209,226,227],{"class":215},">\n",[209,229,231,235,238,242,245,248,250,253,256,259,262,265,268],{"class":211,"line":230},2,[209,232,234],{"class":233},"s7zQu","import",[209,236,237],{"class":215}," {",[209,239,241],{"class":240},"sTEyZ"," ref",[209,243,244],{"class":215},",",[209,246,247],{"class":240}," shallowRef",[209,249,244],{"class":215},[209,251,252],{"class":240}," useTemplateRef",[209,254,255],{"class":215}," }",[209,257,258],{"class":233}," from",[209,260,261],{"class":215}," \"",[209,263,204],{"class":264},"sfazB",[209,266,267],{"class":215},"\"",[209,269,270],{"class":215},";\n",[209,272,274,276,278,281,283,285,287,290,292],{"class":211,"line":273},3,[209,275,234],{"class":233},[209,277,237],{"class":215},[209,279,280],{"class":240}," createPageProvider",[209,282,255],{"class":215},[209,284,258],{"class":233},[209,286,261],{"class":215},[209,288,289],{"class":264},"vvirtual-grid\u002Fvue",[209,291,267],{"class":215},[209,293,270],{"class":215},[209,295,297,299,301,304,306,309,311,313,315,318,320],{"class":211,"line":296},4,[209,298,234],{"class":233},[209,300,237],{"class":215},[209,302,303],{"class":240}," createRectQuery",[209,305,244],{"class":215},[209,307,308],{"class":240}," getItemRect",[209,310,255],{"class":215},[209,312,258],{"class":233},[209,314,261],{"class":215},[209,316,317],{"class":264},"vvirtual-grid\u002Fprimitives",[209,319,267],{"class":215},[209,321,270],{"class":215},[209,323,325],{"class":211,"line":324},5,[209,326,328],{"emptyLinePlaceholder":327},true,"\n",[209,330,332,335,338,341,344,346,350,353,356,359,362,366,369,372,376,378,381,384,387,389,391,394,396,399,402,405,408,411,414,417,419,422],{"class":211,"line":331},6,[209,333,334],{"class":223},"const",[209,336,337],{"class":240}," items ",[209,339,340],{"class":215},"=",[209,342,343],{"class":240}," Array",[209,345,198],{"class":215},[209,347,349],{"class":348},"s2Zo4","from",[209,351,352],{"class":240},"(",[209,354,355],{"class":215},"{",[209,357,358],{"class":219}," length",[209,360,361],{"class":215},":",[209,363,365],{"class":364},"sbssI"," 10000",[209,367,368],{"class":215}," },",[209,370,371],{"class":215}," (",[209,373,375],{"class":374},"sHdIc","_",[209,377,244],{"class":215},[209,379,380],{"class":374}," i",[209,382,383],{"class":215},")",[209,385,386],{"class":223}," =>",[209,388,371],{"class":240},[209,390,355],{"class":215},[209,392,393],{"class":219}," title",[209,395,361],{"class":215},[209,397,398],{"class":215}," `",[209,400,401],{"class":264},"Item ",[209,403,404],{"class":215},"${",[209,406,407],{"class":240},"i ",[209,409,410],{"class":215},"+",[209,412,413],{"class":364}," 1",[209,415,416],{"class":215},"}`",[209,418,255],{"class":215},[209,420,421],{"class":240},"))",[209,423,270],{"class":215},[209,425,427,429,432,434,436,439],{"class":211,"line":426},7,[209,428,334],{"class":223},[209,430,431],{"class":240}," pageProvider ",[209,433,340],{"class":215},[209,435,280],{"class":348},[209,437,438],{"class":240},"(items)",[209,440,270],{"class":215},[209,442,444,446,449,451,453,455,457,460,462,464],{"class":211,"line":443},8,[209,445,334],{"class":223},[209,447,448],{"class":240}," grid ",[209,450,340],{"class":215},[209,452,252],{"class":348},[209,454,352],{"class":240},[209,456,267],{"class":215},[209,458,459],{"class":264},"grid",[209,461,267],{"class":215},[209,463,383],{"class":240},[209,465,270],{"class":215},[209,467,469,471,474,476,478,480,483,486,488],{"class":211,"line":468},9,[209,470,334],{"class":223},[209,472,473],{"class":240}," anchored ",[209,475,340],{"class":215},[209,477,241],{"class":348},[209,479,352],{"class":240},[209,481,482],{"class":215},"-",[209,484,485],{"class":364},"1",[209,487,383],{"class":240},[209,489,270],{"class":215},[209,491,493,495,498,500,502,505],{"class":211,"line":492},10,[209,494,334],{"class":223},[209,496,497],{"class":240}," query ",[209,499,340],{"class":215},[209,501,303],{"class":348},[209,503,504],{"class":240},"()",[209,506,270],{"class":215},[209,508,510],{"class":211,"line":509},11,[209,511,328],{"emptyLinePlaceholder":327},[209,513,515,517,520,522,524,526],{"class":211,"line":514},12,[209,516,334],{"class":223},[209,518,519],{"class":240}," reference ",[209,521,340],{"class":215},[209,523,247],{"class":348},[209,525,352],{"class":240},[209,527,528],{"class":215},"{\n",[209,530,532,535,537],{"class":211,"line":531},13,[209,533,534],{"class":219},"  getBoundingClientRect",[209,536,504],{"class":215},[209,538,539],{"class":215}," {\n",[209,541,543,546,548,550,553,556,558,561,563,566],{"class":211,"line":542},14,[209,544,545],{"class":240},"    query",[209,547,198],{"class":215},[209,549,154],{"class":240},[209,551,552],{"class":215}," =",[209,554,555],{"class":240}," grid",[209,557,198],{"class":215},[209,559,560],{"class":240},"value",[209,562,198],{"class":215},[209,564,565],{"class":240},"$el",[209,567,270],{"class":215},[209,569,571,573,575,578,580,583,585,587],{"class":211,"line":570},15,[209,572,545],{"class":240},[209,574,198],{"class":215},[209,576,577],{"class":240},"index",[209,579,552],{"class":215},[209,581,582],{"class":240}," anchored",[209,584,198],{"class":215},[209,586,560],{"class":240},[209,588,270],{"class":215},[209,590,592,594,596,599,601,603,605,607,609,612],{"class":211,"line":591},16,[209,593,545],{"class":240},[209,595,198],{"class":215},[209,597,598],{"class":240},"layout",[209,600,552],{"class":215},[209,602,555],{"class":240},[209,604,198],{"class":215},[209,606,560],{"class":240},[209,608,198],{"class":215},[209,610,611],{"class":240},"measurement",[209,613,270],{"class":215},[209,615,617,620,622,625,627],{"class":211,"line":616},17,[209,618,619],{"class":348},"    getItemRect",[209,621,352],{"class":219},[209,623,624],{"class":240},"query",[209,626,383],{"class":219},[209,628,270],{"class":215},[209,630,632,635,638,640,642],{"class":211,"line":631},18,[209,633,634],{"class":233},"    return",[209,636,637],{"class":240}," query",[209,639,198],{"class":215},[209,641,164],{"class":240},[209,643,270],{"class":215},[209,645,647],{"class":211,"line":646},19,[209,648,649],{"class":215},"  },\n",[209,651,653,656,658],{"class":211,"line":652},20,[209,654,655],{"class":215},"}",[209,657,383],{"class":240},[209,659,270],{"class":215},[209,661,663,666,668],{"class":211,"line":662},21,[209,664,665],{"class":215},"\u003C\u002F",[209,667,220],{"class":219},[209,669,227],{"class":215},[113,671,672,673,676],{},"Render the grid, and set ",[127,674,675],{},"anchored"," to the index of the item the user clicks.",[200,678,680],{"className":202,"code":679,"language":204,"meta":205,"style":205},"\u003Ctemplate>\n  \u003Cdiv class=\"h-96 overflow-y-auto\">\n    \u003CVirtualGrid\n      ref=\"grid\"\n      :length=\"items.length\"\n      :page-size=\"40\"\n      :page-provider=\"pageProvider\"\n    >\n      \u003Ctemplate #default=\"{ item, index, style }\">\n        \u003Cbutton :style=\"style\" :data-index=\"index\" @click=\"anchored = index\">\n          {{ item.title }}\n        \u003C\u002Fbutton>\n      \u003C\u002Ftemplate>\n    \u003C\u002FVirtualGrid>\n  \u003C\u002Fdiv>\n\u003C\u002Ftemplate>\n",[127,681,682,691,713,721,735,756,772,788,793,831,876,881,890,899,908,917],{"__ignoreMap":205},[209,683,684,686,689],{"class":211,"line":212},[209,685,216],{"class":215},[209,687,688],{"class":219},"template",[209,690,227],{"class":215},[209,692,693,696,699,702,704,706,709,711],{"class":211,"line":230},[209,694,695],{"class":215},"  \u003C",[209,697,698],{"class":219},"div",[209,700,701],{"class":223}," class",[209,703,340],{"class":215},[209,705,267],{"class":215},[209,707,708],{"class":264},"h-96 overflow-y-auto",[209,710,267],{"class":215},[209,712,227],{"class":215},[209,714,715,718],{"class":211,"line":273},[209,716,717],{"class":215},"    \u003C",[209,719,720],{"class":219},"VirtualGrid\n",[209,722,723,726,728,730,732],{"class":211,"line":296},[209,724,725],{"class":223},"      ref",[209,727,340],{"class":215},[209,729,267],{"class":215},[209,731,459],{"class":264},[209,733,734],{"class":215},"\"\n",[209,736,737,740,743,745,747,750,752,754],{"class":211,"line":324},[209,738,739],{"class":215},"      :",[209,741,742],{"class":223},"length",[209,744,340],{"class":215},[209,746,267],{"class":215},[209,748,749],{"class":240},"items",[209,751,198],{"class":215},[209,753,742],{"class":240},[209,755,734],{"class":215},[209,757,758,760,763,765,767,770],{"class":211,"line":331},[209,759,739],{"class":215},[209,761,762],{"class":223},"page-size",[209,764,340],{"class":215},[209,766,267],{"class":215},[209,768,769],{"class":364},"40",[209,771,734],{"class":215},[209,773,774,776,779,781,783,786],{"class":211,"line":426},[209,775,739],{"class":215},[209,777,778],{"class":223},"page-provider",[209,780,340],{"class":215},[209,782,267],{"class":215},[209,784,785],{"class":240},"pageProvider",[209,787,734],{"class":215},[209,789,790],{"class":211,"line":443},[209,791,792],{"class":215},"    >\n",[209,794,795,798,800,803,806,808,810,812,815,817,820,822,825,827,829],{"class":211,"line":468},[209,796,797],{"class":215},"      \u003C",[209,799,688],{"class":219},[209,801,802],{"class":215}," #",[209,804,805],{"class":223},"default",[209,807,340],{"class":215},[209,809,267],{"class":215},[209,811,355],{"class":215},[209,813,814],{"class":240}," item",[209,816,244],{"class":215},[209,818,819],{"class":240}," index",[209,821,244],{"class":215},[209,823,824],{"class":240}," style ",[209,826,655],{"class":215},[209,828,267],{"class":215},[209,830,227],{"class":215},[209,832,833,836,839,842,844,846,849,851,854,856,858,860,862,865,867,869,872,874],{"class":211,"line":492},[209,834,835],{"class":215},"        \u003C",[209,837,838],{"class":219},"button",[209,840,841],{"class":223}," :style",[209,843,340],{"class":215},[209,845,267],{"class":215},[209,847,848],{"class":264},"style",[209,850,267],{"class":215},[209,852,853],{"class":223}," :data-index",[209,855,340],{"class":215},[209,857,267],{"class":215},[209,859,577],{"class":264},[209,861,267],{"class":215},[209,863,864],{"class":223}," @click",[209,866,340],{"class":215},[209,868,267],{"class":215},[209,870,871],{"class":264},"anchored = index",[209,873,267],{"class":215},[209,875,227],{"class":215},[209,877,878],{"class":211,"line":509},[209,879,880],{"class":240},"          {{ item.title }}\n",[209,882,883,886,888],{"class":211,"line":514},[209,884,885],{"class":215},"        \u003C\u002F",[209,887,838],{"class":219},[209,889,227],{"class":215},[209,891,892,895,897],{"class":211,"line":531},[209,893,894],{"class":215},"      \u003C\u002F",[209,896,688],{"class":219},[209,898,227],{"class":215},[209,900,901,904,906],{"class":211,"line":542},[209,902,903],{"class":215},"    \u003C\u002F",[209,905,33],{"class":219},[209,907,227],{"class":215},[209,909,910,913,915],{"class":211,"line":570},[209,911,912],{"class":215},"  \u003C\u002F",[209,914,698],{"class":219},[209,916,227],{"class":215},[209,918,919,921,923],{"class":211,"line":591},[209,920,665],{"class":215},[209,922,688],{"class":219},[209,924,227],{"class":215},[113,926,927,928,930,931,934,935,937],{},"If ",[127,929,150],{}," returns ",[127,932,933],{},"false",", ",[127,936,187],{}," keeps its last values. The floating element then stays where it was until the next call succeeds.",[175,939,941,942],{"id":940},"position-with-usefloating","Position with ",[127,943,944],{},"useFloating",[113,946,947,948,951,952,954,955,958],{},"With ",[127,949,950],{},"@floating-ui\u002Fvue",", pass the virtual element, the floating element and the options to ",[127,953,944],{},". Use ",[127,956,957],{},"strategy: \"fixed\"",", because the rectangle holds viewport coordinates.",[200,960,962],{"className":202,"code":961,"language":204,"meta":205,"style":205},"\u003Cscript setup>\nimport { useFloating, offset, flip, shift } from \"@floating-ui\u002Fvue\";\n\nconst floating = useTemplateRef(\"floating\");\n\nconst { floatingStyles, update } = useFloating(reference, floating, {\n  strategy: \"fixed\",\n  placement: \"bottom-start\",\n  middleware: [offset(4), flip(), shift()],\n});\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003Cdiv ref=\"floating\" popover :style=\"floatingStyles\" style=\"margin: 0; inset: auto\">\n    Item {{ anchored }}\n  \u003C\u002Fdiv>\n\u003C\u002Ftemplate>\n",[127,963,964,974,1010,1014,1038,1042,1074,1091,1107,1142,1150,1158,1162,1170,1214,1219,1227],{"__ignoreMap":205},[209,965,966,968,970,972],{"class":211,"line":212},[209,967,216],{"class":215},[209,969,220],{"class":219},[209,971,224],{"class":223},[209,973,227],{"class":215},[209,975,976,978,980,983,985,988,990,993,995,998,1000,1002,1004,1006,1008],{"class":211,"line":230},[209,977,234],{"class":233},[209,979,237],{"class":215},[209,981,982],{"class":240}," useFloating",[209,984,244],{"class":215},[209,986,987],{"class":240}," offset",[209,989,244],{"class":215},[209,991,992],{"class":240}," flip",[209,994,244],{"class":215},[209,996,997],{"class":240}," shift",[209,999,255],{"class":215},[209,1001,258],{"class":233},[209,1003,261],{"class":215},[209,1005,950],{"class":264},[209,1007,267],{"class":215},[209,1009,270],{"class":215},[209,1011,1012],{"class":211,"line":273},[209,1013,328],{"emptyLinePlaceholder":327},[209,1015,1016,1018,1021,1023,1025,1027,1029,1032,1034,1036],{"class":211,"line":296},[209,1017,334],{"class":223},[209,1019,1020],{"class":240}," floating ",[209,1022,340],{"class":215},[209,1024,252],{"class":348},[209,1026,352],{"class":240},[209,1028,267],{"class":215},[209,1030,1031],{"class":264},"floating",[209,1033,267],{"class":215},[209,1035,383],{"class":240},[209,1037,270],{"class":215},[209,1039,1040],{"class":211,"line":324},[209,1041,328],{"emptyLinePlaceholder":327},[209,1043,1044,1046,1048,1051,1053,1056,1058,1060,1062,1065,1067,1070,1072],{"class":211,"line":331},[209,1045,334],{"class":223},[209,1047,237],{"class":215},[209,1049,1050],{"class":240}," floatingStyles",[209,1052,244],{"class":215},[209,1054,1055],{"class":240}," update ",[209,1057,655],{"class":215},[209,1059,552],{"class":215},[209,1061,982],{"class":348},[209,1063,1064],{"class":240},"(reference",[209,1066,244],{"class":215},[209,1068,1069],{"class":240}," floating",[209,1071,244],{"class":215},[209,1073,539],{"class":215},[209,1075,1076,1079,1081,1083,1086,1088],{"class":211,"line":426},[209,1077,1078],{"class":219},"  strategy",[209,1080,361],{"class":215},[209,1082,261],{"class":215},[209,1084,1085],{"class":264},"fixed",[209,1087,267],{"class":215},[209,1089,1090],{"class":215},",\n",[209,1092,1093,1096,1098,1100,1103,1105],{"class":211,"line":443},[209,1094,1095],{"class":219},"  placement",[209,1097,361],{"class":215},[209,1099,261],{"class":215},[209,1101,1102],{"class":264},"bottom-start",[209,1104,267],{"class":215},[209,1106,1090],{"class":215},[209,1108,1109,1112,1114,1117,1120,1122,1125,1127,1129,1131,1133,1135,1137,1140],{"class":211,"line":468},[209,1110,1111],{"class":219},"  middleware",[209,1113,361],{"class":215},[209,1115,1116],{"class":240}," [",[209,1118,1119],{"class":348},"offset",[209,1121,352],{"class":240},[209,1123,1124],{"class":364},"4",[209,1126,383],{"class":240},[209,1128,244],{"class":215},[209,1130,992],{"class":348},[209,1132,504],{"class":240},[209,1134,244],{"class":215},[209,1136,997],{"class":348},[209,1138,1139],{"class":240},"()]",[209,1141,1090],{"class":215},[209,1143,1144,1146,1148],{"class":211,"line":492},[209,1145,655],{"class":215},[209,1147,383],{"class":240},[209,1149,270],{"class":215},[209,1151,1152,1154,1156],{"class":211,"line":509},[209,1153,665],{"class":215},[209,1155,220],{"class":219},[209,1157,227],{"class":215},[209,1159,1160],{"class":211,"line":514},[209,1161,328],{"emptyLinePlaceholder":327},[209,1163,1164,1166,1168],{"class":211,"line":531},[209,1165,216],{"class":215},[209,1167,688],{"class":219},[209,1169,227],{"class":215},[209,1171,1172,1174,1176,1178,1180,1182,1184,1186,1189,1191,1193,1195,1198,1200,1203,1205,1207,1210,1212],{"class":211,"line":542},[209,1173,695],{"class":215},[209,1175,698],{"class":219},[209,1177,241],{"class":223},[209,1179,340],{"class":215},[209,1181,267],{"class":215},[209,1183,1031],{"class":264},[209,1185,267],{"class":215},[209,1187,1188],{"class":223}," popover",[209,1190,841],{"class":223},[209,1192,340],{"class":215},[209,1194,267],{"class":215},[209,1196,1197],{"class":264},"floatingStyles",[209,1199,267],{"class":215},[209,1201,1202],{"class":223}," style",[209,1204,340],{"class":215},[209,1206,267],{"class":215},[209,1208,1209],{"class":264},"margin: 0; inset: auto",[209,1211,267],{"class":215},[209,1213,227],{"class":215},[209,1215,1216],{"class":211,"line":570},[209,1217,1218],{"class":240},"    Item {{ anchored }}\n",[209,1220,1221,1223,1225],{"class":211,"line":591},[209,1222,912],{"class":215},[209,1224,698],{"class":219},[209,1226,227],{"class":215},[209,1228,1229,1231,1233],{"class":211,"line":616},[209,1230,665],{"class":215},[209,1232,688],{"class":219},[209,1234,227],{"class":215},[113,1236,1237,1239,1240,934,1243,934,1246,1249,1250,1253,1254,1249,1257,1260,1261,1264,1265,1267],{},[127,1238,1197],{}," sets ",[127,1241,1242],{},"position",[127,1244,1245],{},"left",[127,1247,1248],{},"top"," and ",[127,1251,1252],{},"transform"," on the element. The inline ",[127,1255,1256],{},"margin",[127,1258,1259],{},"inset"," reset what the browser sets on a native ",[127,1262,1263],{},"popover",". The ",[127,1266,1263],{}," attribute also keeps the floating element in the top layer, so the scroll container does not clip it.",[175,1269,1271],{"id":1270},"update-on-scroll-and-layout-changes","Update on scroll and layout changes",[113,1273,1274,1276,1277,1280],{},[127,1275,944],{}," computes the position when the elements change. It does not know that the grid scrolled or that the item size changed. Call ",[127,1278,1279],{},"update()"," from the grid's events.",[200,1282,1284],{"className":202,"code":1283,"language":204,"meta":205,"style":205},"\u003Ctemplate>\n  \u003Cdiv class=\"h-96 overflow-y-auto\">\n    \u003CVirtualGrid\n      ref=\"grid\"\n      :length=\"items.length\"\n      :page-size=\"40\"\n      :page-provider=\"pageProvider\"\n      @viewport-scroll=\"update\"\n      @layout-change=\"update\"\n      class=\"grid grid-cols-[repeat(auto-fill,minmax(120px,1fr))] gap-2\"\n    >\n      \u003C!-- the default, placeholder and probe slots -->\n    \u003C\u002FVirtualGrid>\n  \u003C\u002Fdiv>\n\u003C\u002Ftemplate>\n",[127,1285,1286,1294,1312,1318,1330,1348,1362,1376,1393,1408,1422,1426,1432,1440,1448],{"__ignoreMap":205},[209,1287,1288,1290,1292],{"class":211,"line":212},[209,1289,216],{"class":215},[209,1291,688],{"class":219},[209,1293,227],{"class":215},[209,1295,1296,1298,1300,1302,1304,1306,1308,1310],{"class":211,"line":230},[209,1297,695],{"class":215},[209,1299,698],{"class":219},[209,1301,701],{"class":223},[209,1303,340],{"class":215},[209,1305,267],{"class":215},[209,1307,708],{"class":264},[209,1309,267],{"class":215},[209,1311,227],{"class":215},[209,1313,1314,1316],{"class":211,"line":273},[209,1315,717],{"class":215},[209,1317,720],{"class":219},[209,1319,1320,1322,1324,1326,1328],{"class":211,"line":296},[209,1321,725],{"class":223},[209,1323,340],{"class":215},[209,1325,267],{"class":215},[209,1327,459],{"class":264},[209,1329,734],{"class":215},[209,1331,1332,1334,1336,1338,1340,1342,1344,1346],{"class":211,"line":324},[209,1333,739],{"class":215},[209,1335,742],{"class":223},[209,1337,340],{"class":215},[209,1339,267],{"class":215},[209,1341,749],{"class":240},[209,1343,198],{"class":215},[209,1345,742],{"class":240},[209,1347,734],{"class":215},[209,1349,1350,1352,1354,1356,1358,1360],{"class":211,"line":331},[209,1351,739],{"class":215},[209,1353,762],{"class":223},[209,1355,340],{"class":215},[209,1357,267],{"class":215},[209,1359,769],{"class":364},[209,1361,734],{"class":215},[209,1363,1364,1366,1368,1370,1372,1374],{"class":211,"line":426},[209,1365,739],{"class":215},[209,1367,778],{"class":223},[209,1369,340],{"class":215},[209,1371,267],{"class":215},[209,1373,785],{"class":240},[209,1375,734],{"class":215},[209,1377,1378,1381,1384,1386,1388,1391],{"class":211,"line":443},[209,1379,1380],{"class":215},"      @",[209,1382,1383],{"class":223},"viewport-scroll",[209,1385,340],{"class":215},[209,1387,267],{"class":215},[209,1389,1390],{"class":240},"update",[209,1392,734],{"class":215},[209,1394,1395,1397,1400,1402,1404,1406],{"class":211,"line":468},[209,1396,1380],{"class":215},[209,1398,1399],{"class":223},"layout-change",[209,1401,340],{"class":215},[209,1403,267],{"class":215},[209,1405,1390],{"class":240},[209,1407,734],{"class":215},[209,1409,1410,1413,1415,1417,1420],{"class":211,"line":492},[209,1411,1412],{"class":223},"      class",[209,1414,340],{"class":215},[209,1416,267],{"class":215},[209,1418,1419],{"class":264},"grid grid-cols-[repeat(auto-fill,minmax(120px,1fr))] gap-2",[209,1421,734],{"class":215},[209,1423,1424],{"class":211,"line":509},[209,1425,792],{"class":215},[209,1427,1428],{"class":211,"line":514},[209,1429,1431],{"class":1430},"sHwdD","      \u003C!-- the default, placeholder and probe slots -->\n",[209,1433,1434,1436,1438],{"class":211,"line":531},[209,1435,903],{"class":215},[209,1437,33],{"class":219},[209,1439,227],{"class":215},[209,1441,1442,1444,1446],{"class":211,"line":542},[209,1443,912],{"class":215},[209,1445,698],{"class":219},[209,1447,227],{"class":215},[209,1449,1450,1452,1454],{"class":211,"line":570},[209,1451,665],{"class":215},[209,1453,688],{"class":219},[209,1455,227],{"class":215},[113,1457,1458,1459,1461,1462,1464,1465,1467,1468,1471,1472,1475,1476,1479,1480,361],{},"Also call ",[127,1460,1279],{}," right after you change ",[127,1463,675],{},", because the index changed but no element did. Show the popover before you call ",[127,1466,1279],{},". A hidden popover has no size, and Floating UI only treats it as shown in the top layer after ",[127,1469,1470],{},"showPopover()",". Replace ",[127,1473,1474],{},"@click=\"anchored = index\""," from ",[117,1477,178],{"href":1478},"#create-the-query-and-the-virtual-element"," with ",[127,1481,1482],{},"@click=\"open(index)\"",[200,1484,1488],{"className":1485,"code":1486,"language":1487,"meta":205,"style":205},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","function open(index) {\n  anchored.value = index;\n  floating.value.showPopover();\n  update();\n}\n","ts",[127,1489,1490,1506,1521,1539,1548],{"__ignoreMap":205},[209,1491,1492,1495,1498,1500,1502,1504],{"class":211,"line":212},[209,1493,1494],{"class":223},"function",[209,1496,1497],{"class":348}," open",[209,1499,352],{"class":215},[209,1501,577],{"class":374},[209,1503,383],{"class":215},[209,1505,539],{"class":215},[209,1507,1508,1511,1513,1515,1517,1519],{"class":211,"line":230},[209,1509,1510],{"class":240},"  anchored",[209,1512,198],{"class":215},[209,1514,560],{"class":240},[209,1516,552],{"class":215},[209,1518,819],{"class":240},[209,1520,270],{"class":215},[209,1522,1523,1526,1528,1530,1532,1535,1537],{"class":211,"line":273},[209,1524,1525],{"class":240},"  floating",[209,1527,198],{"class":215},[209,1529,560],{"class":240},[209,1531,198],{"class":215},[209,1533,1534],{"class":348},"showPopover",[209,1536,504],{"class":219},[209,1538,270],{"class":215},[209,1540,1541,1544,1546],{"class":211,"line":296},[209,1542,1543],{"class":348},"  update",[209,1545,504],{"class":219},[209,1547,270],{"class":215},[209,1549,1550],{"class":211,"line":324},[209,1551,1552],{"class":215},"}\n",[175,1554,1556],{"id":1555},"flip-at-the-edge-of-the-scroll-container","Flip at the edge of the scroll container",[113,1558,1559,1560,1249,1563,1566,1567,1570,1571,1574],{},"By default, ",[127,1561,1562],{},"flip()",[127,1564,1565],{},"shift()"," keep the floating element inside the browser window. A popover sits in the top layer, so the scroll container does not clip it, and Floating UI does not count the container as an edge. To flip at the container's edge instead, pass the container as ",[127,1568,1569],{},"boundary"," to both. Add ",[127,1572,1573],{},"ref=\"scroller\""," to the scroll container.",[200,1576,1578],{"className":1485,"code":1577,"language":1487,"meta":205,"style":205},"import { onMounted } from \"vue\";\n\nconst scroller = useTemplateRef(\"scroller\");\nconst overflow: { boundary?: Element } = {};\n\nonMounted(() => {\n  overflow.boundary = scroller.value ?? undefined;\n});\n",[127,1579,1580,1601,1605,1629,1657,1661,1674,1698],{"__ignoreMap":205},[209,1581,1582,1584,1586,1589,1591,1593,1595,1597,1599],{"class":211,"line":212},[209,1583,234],{"class":233},[209,1585,237],{"class":215},[209,1587,1588],{"class":240}," onMounted",[209,1590,255],{"class":215},[209,1592,258],{"class":233},[209,1594,261],{"class":215},[209,1596,204],{"class":264},[209,1598,267],{"class":215},[209,1600,270],{"class":215},[209,1602,1603],{"class":211,"line":230},[209,1604,328],{"emptyLinePlaceholder":327},[209,1606,1607,1609,1612,1614,1616,1618,1620,1623,1625,1627],{"class":211,"line":273},[209,1608,334],{"class":223},[209,1610,1611],{"class":240}," scroller ",[209,1613,340],{"class":215},[209,1615,252],{"class":348},[209,1617,352],{"class":240},[209,1619,267],{"class":215},[209,1621,1622],{"class":264},"scroller",[209,1624,267],{"class":215},[209,1626,383],{"class":240},[209,1628,270],{"class":215},[209,1630,1631,1633,1636,1638,1640,1643,1646,1650,1652,1654],{"class":211,"line":296},[209,1632,334],{"class":223},[209,1634,1635],{"class":240}," overflow",[209,1637,361],{"class":215},[209,1639,237],{"class":215},[209,1641,1642],{"class":219}," boundary",[209,1644,1645],{"class":215},"?:",[209,1647,1649],{"class":1648},"sBMFI"," Element",[209,1651,255],{"class":215},[209,1653,552],{"class":215},[209,1655,1656],{"class":215}," {};\n",[209,1658,1659],{"class":211,"line":324},[209,1660,328],{"emptyLinePlaceholder":327},[209,1662,1663,1666,1668,1670,1672],{"class":211,"line":331},[209,1664,1665],{"class":348},"onMounted",[209,1667,352],{"class":240},[209,1669,504],{"class":215},[209,1671,386],{"class":223},[209,1673,539],{"class":215},[209,1675,1676,1679,1681,1683,1685,1688,1690,1692,1695],{"class":211,"line":426},[209,1677,1678],{"class":240},"  overflow",[209,1680,198],{"class":215},[209,1682,1569],{"class":240},[209,1684,552],{"class":215},[209,1686,1687],{"class":240}," scroller",[209,1689,198],{"class":215},[209,1691,560],{"class":240},[209,1693,1694],{"class":215}," ??",[209,1696,1697],{"class":215}," undefined;\n",[209,1699,1700,1702,1704],{"class":211,"line":443},[209,1701,655],{"class":215},[209,1703,383],{"class":240},[209,1705,270],{"class":215},[113,1707,1708,1709,1712,1713,1718,1719,1722,1723,1726],{},"Then change the ",[127,1710,1711],{},"middleware"," option from ",[117,1714,941,1716],{"href":1715},"#position-with-usefloating",[127,1717,944],{}," to ",[127,1720,1721],{},"[offset(4), flip(overflow), shift(overflow)]",". Floating UI reads ",[127,1724,1725],{},"overflow.boundary"," on every update, so one object serves both and no update creates a new one.",[175,1728,1730],{"id":1729},"check-that-it-follows-the-item","Check that it follows the item",[113,1732,1733,1734,198],{},"Open the floating element on an item, then scroll far enough that the item leaves the DOM. The element keeps moving with the item's position. To confirm the item left the DOM, open the Elements panel and expand the grid. It has no child with the item's ",[127,1735,1736],{},"data-index",[113,1738,1739,1740,1742],{},"Open it on an item near the bottom edge of the scroll container. ",[127,1741,1562],{}," moves it above the item.",[141,1744,1746,1747],{"id":1745},"use-autoupdate","Use ",[127,1748,1749],{},"autoUpdate",[113,1751,1752,1754,1755,1757,1758,198],{},[127,1753,944],{}," can call ",[127,1756,1279],{}," for you through ",[127,1759,1760],{},"whileElementsMounted",[200,1762,1764],{"className":1485,"code":1763,"language":1487,"meta":205,"style":205},"import { autoUpdate } from \"@floating-ui\u002Fvue\";\n\nuseFloating(reference, floating, {\n  strategy: \"fixed\",\n  middleware: [offset(4), flip(), shift()],\n  whileElementsMounted: autoUpdate,\n});\n",[127,1765,1766,1787,1791,1805,1819,1849,1860],{"__ignoreMap":205},[209,1767,1768,1770,1772,1775,1777,1779,1781,1783,1785],{"class":211,"line":212},[209,1769,234],{"class":233},[209,1771,237],{"class":215},[209,1773,1774],{"class":240}," autoUpdate",[209,1776,255],{"class":215},[209,1778,258],{"class":233},[209,1780,261],{"class":215},[209,1782,950],{"class":264},[209,1784,267],{"class":215},[209,1786,270],{"class":215},[209,1788,1789],{"class":211,"line":230},[209,1790,328],{"emptyLinePlaceholder":327},[209,1792,1793,1795,1797,1799,1801,1803],{"class":211,"line":273},[209,1794,944],{"class":348},[209,1796,1064],{"class":240},[209,1798,244],{"class":215},[209,1800,1069],{"class":240},[209,1802,244],{"class":215},[209,1804,539],{"class":215},[209,1806,1807,1809,1811,1813,1815,1817],{"class":211,"line":296},[209,1808,1078],{"class":219},[209,1810,361],{"class":215},[209,1812,261],{"class":215},[209,1814,1085],{"class":264},[209,1816,267],{"class":215},[209,1818,1090],{"class":215},[209,1820,1821,1823,1825,1827,1829,1831,1833,1835,1837,1839,1841,1843,1845,1847],{"class":211,"line":324},[209,1822,1111],{"class":219},[209,1824,361],{"class":215},[209,1826,1116],{"class":240},[209,1828,1119],{"class":348},[209,1830,352],{"class":240},[209,1832,1124],{"class":364},[209,1834,383],{"class":240},[209,1836,244],{"class":215},[209,1838,992],{"class":348},[209,1840,504],{"class":240},[209,1842,244],{"class":215},[209,1844,997],{"class":348},[209,1846,1139],{"class":240},[209,1848,1090],{"class":215},[209,1850,1851,1854,1856,1858],{"class":211,"line":331},[209,1852,1853],{"class":219},"  whileElementsMounted",[209,1855,361],{"class":215},[209,1857,1774],{"class":240},[209,1859,1090],{"class":215},[209,1861,1862,1864,1866],{"class":211,"line":426},[209,1863,655],{"class":215},[209,1865,383],{"class":240},[209,1867,270],{"class":215},[113,1869,1870,1872,1873,1875,1876,1249,1879,1882,1883,1886,1887,1889],{},[127,1871,1749],{}," watches the reference element's scroll parents. A virtual element has no element, so ",[127,1874,1749],{}," cannot watch the grid's scroll container through the reference. Keep the ",[127,1877,1878],{},"@viewport-scroll=\"update\"",[127,1880,1881],{},"@layout-change=\"update\""," handlers from ",[117,1884,1271],{"href":1885},"#update-on-scroll-and-layout-changes",". ",[127,1888,1749],{}," also cannot see a change of item size or gap.",[141,1891,1746,1893,1896],{"id":1892},"use-floating-uidom-without-vue",[127,1894,1895],{},"@floating-ui\u002Fdom"," without Vue",[113,1898,1899,1902,1903,1249,1906,1909,1910,1249,1912,1916],{},[127,1900,1901],{},"computePosition"," takes the same virtual element and returns the coordinates. Pass it ",[127,1904,1905],{},"reference.value",[127,1907,1908],{},"floating.value",", the virtual element and the floating element from ",[117,1911,178],{"href":1478},[117,1913,941,1914],{"href":1715},[127,1915,944],{},", and write the coordinates to the element yourself.",[200,1918,1920],{"className":1485,"code":1919,"language":1487,"meta":205,"style":205},"import { computePosition, offset, flip, shift } from \"@floating-ui\u002Fdom\";\n\nasync function place() {\n  const { x, y } = await computePosition(reference.value, floating.value, {\n    strategy: \"fixed\",\n    placement: \"bottom-start\",\n    middleware: [offset(4), flip(), shift()],\n  });\n  floating.value.style.translate = `${x}px ${y}px`;\n}\n",[127,1921,1922,1955,1959,1974,2019,2034,2049,2080,2089,2134],{"__ignoreMap":205},[209,1923,1924,1926,1928,1931,1933,1935,1937,1939,1941,1943,1945,1947,1949,1951,1953],{"class":211,"line":212},[209,1925,234],{"class":233},[209,1927,237],{"class":215},[209,1929,1930],{"class":240}," computePosition",[209,1932,244],{"class":215},[209,1934,987],{"class":240},[209,1936,244],{"class":215},[209,1938,992],{"class":240},[209,1940,244],{"class":215},[209,1942,997],{"class":240},[209,1944,255],{"class":215},[209,1946,258],{"class":233},[209,1948,261],{"class":215},[209,1950,1895],{"class":264},[209,1952,267],{"class":215},[209,1954,270],{"class":215},[209,1956,1957],{"class":211,"line":230},[209,1958,328],{"emptyLinePlaceholder":327},[209,1960,1961,1964,1967,1970,1972],{"class":211,"line":273},[209,1962,1963],{"class":223},"async",[209,1965,1966],{"class":223}," function",[209,1968,1969],{"class":348}," place",[209,1971,504],{"class":215},[209,1973,539],{"class":215},[209,1975,1976,1979,1981,1984,1986,1989,1991,1993,1996,1998,2000,2003,2005,2007,2009,2011,2013,2015,2017],{"class":211,"line":296},[209,1977,1978],{"class":223},"  const",[209,1980,237],{"class":215},[209,1982,1983],{"class":240}," x",[209,1985,244],{"class":215},[209,1987,1988],{"class":240}," y",[209,1990,255],{"class":215},[209,1992,552],{"class":215},[209,1994,1995],{"class":233}," await",[209,1997,1930],{"class":348},[209,1999,352],{"class":219},[209,2001,2002],{"class":240},"reference",[209,2004,198],{"class":215},[209,2006,560],{"class":240},[209,2008,244],{"class":215},[209,2010,1069],{"class":240},[209,2012,198],{"class":215},[209,2014,560],{"class":240},[209,2016,244],{"class":215},[209,2018,539],{"class":215},[209,2020,2021,2024,2026,2028,2030,2032],{"class":211,"line":324},[209,2022,2023],{"class":219},"    strategy",[209,2025,361],{"class":215},[209,2027,261],{"class":215},[209,2029,1085],{"class":264},[209,2031,267],{"class":215},[209,2033,1090],{"class":215},[209,2035,2036,2039,2041,2043,2045,2047],{"class":211,"line":331},[209,2037,2038],{"class":219},"    placement",[209,2040,361],{"class":215},[209,2042,261],{"class":215},[209,2044,1102],{"class":264},[209,2046,267],{"class":215},[209,2048,1090],{"class":215},[209,2050,2051,2054,2056,2058,2060,2062,2064,2066,2068,2070,2072,2074,2076,2078],{"class":211,"line":426},[209,2052,2053],{"class":219},"    middleware",[209,2055,361],{"class":215},[209,2057,1116],{"class":219},[209,2059,1119],{"class":348},[209,2061,352],{"class":219},[209,2063,1124],{"class":364},[209,2065,383],{"class":219},[209,2067,244],{"class":215},[209,2069,992],{"class":348},[209,2071,504],{"class":219},[209,2073,244],{"class":215},[209,2075,997],{"class":348},[209,2077,1139],{"class":219},[209,2079,1090],{"class":215},[209,2081,2082,2085,2087],{"class":211,"line":443},[209,2083,2084],{"class":215},"  }",[209,2086,383],{"class":219},[209,2088,270],{"class":215},[209,2090,2091,2093,2095,2097,2099,2101,2103,2106,2108,2111,2114,2116,2119,2121,2124,2126,2129,2132],{"class":211,"line":468},[209,2092,1525],{"class":240},[209,2094,198],{"class":215},[209,2096,560],{"class":240},[209,2098,198],{"class":215},[209,2100,848],{"class":240},[209,2102,198],{"class":215},[209,2104,2105],{"class":240},"translate",[209,2107,552],{"class":215},[209,2109,2110],{"class":215}," `${",[209,2112,2113],{"class":240},"x",[209,2115,655],{"class":215},[209,2117,2118],{"class":264},"px ",[209,2120,404],{"class":215},[209,2122,2123],{"class":240},"y",[209,2125,655],{"class":215},[209,2127,2128],{"class":264},"px",[209,2130,2131],{"class":215},"`",[209,2133,270],{"class":215},[209,2135,2136],{"class":211,"line":492},[209,2137,1552],{"class":215},[113,2139,2140,2141,2143,2144,2147],{},"The element needs this CSS, so the translation starts at the top left of the window. A native ",[127,2142,1263],{}," has ",[127,2145,2146],{},"margin: auto"," by default, which centers it.",[200,2149,2153],{"className":2150,"code":2151,"language":2152,"meta":205,"style":205},"language-css shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","[popover] {\n  position: fixed;\n  inset: 0 auto auto 0;\n  margin: 0;\n}\n","css",[127,2154,2155,2167,2180,2198,2209],{"__ignoreMap":205},[209,2156,2157,2160,2162,2165],{"class":211,"line":212},[209,2158,2159],{"class":215},"[",[209,2161,1263],{"class":223},[209,2163,2164],{"class":215},"]",[209,2166,539],{"class":215},[209,2168,2169,2173,2175,2178],{"class":211,"line":230},[209,2170,2172],{"class":2171},"sqsOY","  position",[209,2174,361],{"class":215},[209,2176,2177],{"class":240}," fixed",[209,2179,270],{"class":215},[209,2181,2182,2185,2187,2190,2193,2196],{"class":211,"line":273},[209,2183,2184],{"class":2171},"  inset",[209,2186,361],{"class":215},[209,2188,2189],{"class":364}," 0",[209,2191,2192],{"class":240}," auto auto ",[209,2194,2195],{"class":364},"0",[209,2197,270],{"class":215},[209,2199,2200,2203,2205,2207],{"class":211,"line":296},[209,2201,2202],{"class":2171},"  margin",[209,2204,361],{"class":215},[209,2206,2189],{"class":364},[209,2208,270],{"class":215},[209,2210,2211],{"class":211,"line":324},[209,2212,1552],{"class":215},[113,2214,2215,2216,2219,2220,1249,2222,2224,2225,2227,2228,198],{},"Call ",[127,2217,2218],{},"place()"," on ",[127,2221,1383],{},[127,2223,1399],{},", as in ",[117,2226,1271],{"href":1885},", and once right after ",[127,2229,1470],{},[848,2231,2232],{},"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 .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 .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}html pre.shiki code .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}html pre.shiki code .sHdIc, html code.shiki .sHdIc{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#EEFFFF;--shiki-default-font-style:italic;--shiki-dark:#BABED8;--shiki-dark-font-style:italic}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);}html pre.shiki code .sHwdD, html code.shiki .sHwdD{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic}html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .sqsOY, html code.shiki .sqsOY{--shiki-light:#8796B0;--shiki-default:#B2CCD6;--shiki-dark:#B2CCD6}",{"title":205,"searchDepth":230,"depth":230,"links":2234},[2235,2243,2245],{"id":143,"depth":230,"text":144,"children":2236},[2237,2238,2240,2241,2242],{"id":177,"depth":273,"text":178},{"id":940,"depth":273,"text":2239},"Position with useFloating",{"id":1270,"depth":273,"text":1271},{"id":1555,"depth":273,"text":1556},{"id":1729,"depth":273,"text":1730},{"id":1745,"depth":230,"text":2244},"Use autoUpdate",{"id":1892,"depth":230,"text":2246},"Use @floating-ui\u002Fdom without Vue","Use the rectangle the grid computes as a Floating UI virtual element, so a floating element follows items that are not rendered.","md",null,{},{"icon":76},{"title":73,"description":2247},"cudo1nBFdQDoyo-CLWsLoLhUKdQFoAGciC_uPr8KheE",[2255,2257],{"title":68,"path":69,"stem":70,"description":2256,"icon":71,"children":-1},"Open a native popover under a clicked grid item and keep it attached while the grid scrolls.",{"title":78,"path":79,"stem":80,"description":2258,"icon":81,"children":-1},"Give the grid a probe so it knows the item size, then make it scroll sideways.",1794785669036]