[{"data":1,"prerenderedAt":239},["ShallowReactive",2],{"navigation_docs":3,"-reference-aria-patterns":107,"-reference-aria-patterns-surround":234},[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":53,"body":109,"description":227,"extension":228,"links":229,"meta":230,"navigation":231,"path":54,"seo":232,"stem":55,"__hash__":233},"docs\u002F2.reference\u002F6.aria-patterns.md",{"type":110,"value":111,"toc":221},"minimark",[112,116,121,171,175],[113,114,115],"p",{},"The grid renders its items as flat children of one element. That structure decides which ARIA roles fit.",[117,118,120],"h2",{"id":119},"list-and-listbox","List and listbox",[113,122,123,124,134,135,142,143,134,150,157,158,161,162,165,166,170],{},"The ",[125,126,130],"a",{"href":127,"rel":128},"https:\u002F\u002Fdeveloper.mozilla.org\u002Fen-US\u002Fdocs\u002FWeb\u002FAccessibility\u002FARIA\u002FReference\u002FRoles\u002Flist_role",[129],"nofollow",[131,132,133],"code",{},"list"," and ",[125,136,139],{"href":137,"rel":138},"https:\u002F\u002Fdeveloper.mozilla.org\u002Fen-US\u002Fdocs\u002FWeb\u002FAccessibility\u002FARIA\u002FReference\u002FRoles\u002Flistitem_role",[129],[131,140,141],{},"listitem"," roles fit because a list is one element with its items as children, and that is the structure the grid renders. The ",[125,144,147],{"href":145,"rel":146},"https:\u002F\u002Fdeveloper.mozilla.org\u002Fen-US\u002Fdocs\u002FWeb\u002FAccessibility\u002FARIA\u002FReference\u002FRoles\u002Flistbox_role",[129],[131,148,149],{},"listbox",[125,151,154],{"href":152,"rel":153},"https:\u002F\u002Fdeveloper.mozilla.org\u002Fen-US\u002Fdocs\u002FWeb\u002FAccessibility\u002FARIA\u002FReference\u002FRoles\u002Foption_role",[129],[131,155,156],{},"option"," roles fit for the same reason. Use them when the items are selectable, and add ",[131,159,160],{},"aria-selected"," to each option. A listbox also needs a way for keyboard users to move between options, such as the roving ",[131,163,164],{},"tabindex"," in the ",[125,167,169],{"href":168},"\u002Fguides\u002Faccessibility#keep-the-focused-index-in-a-ref","accessibility guide",".",[117,172,174],{"id":173},"grid-row-and-cell-roles","Grid, row and cell roles",[113,176,123,177,184,185,134,192,199,200,202,203,205,206,212,213,216,217,220],{},[125,178,181],{"href":179,"rel":180},"https:\u002F\u002Fdeveloper.mozilla.org\u002Fen-US\u002Fdocs\u002FWeb\u002FAccessibility\u002FARIA\u002FReference\u002FRoles\u002Fgrid_role",[129],[131,182,183],{},"grid",", ",[125,186,189],{"href":187,"rel":188},"https:\u002F\u002Fdeveloper.mozilla.org\u002Fen-US\u002Fdocs\u002FWeb\u002FAccessibility\u002FARIA\u002FReference\u002FRoles\u002Frow_role",[129],[131,190,191],{},"row",[125,193,196],{"href":194,"rel":195},"https:\u002F\u002Fdeveloper.mozilla.org\u002Fen-US\u002Fdocs\u002FWeb\u002FAccessibility\u002FARIA\u002FReference\u002FRoles\u002Fgridcell_role",[129],[131,197,198],{},"gridcell"," roles do not fit. A ",[131,201,183],{}," needs ",[131,204,191],{}," elements that wrap their cells, and the grid renders no row elements. If you need to announce rows and columns, compute the row and column with ",[125,207,209],{"href":208},"\u002Freference\u002Fprimitives#getitemcell",[131,210,211],{},"getItemCell"," and write the numbers into ",[131,214,215],{},"aria-description"," on each item. Recompute the description in a ",[131,218,219],{},"layout-change"," handler, because the column count changes when the grid is resized.",{"title":222,"searchDepth":223,"depth":223,"links":224},"",2,[225,226],{"id":119,"depth":223,"text":120},{"id":173,"depth":223,"text":174},"Which ARIA roles fit a flat, virtualized grid, and which do not.","md",null,{},{"icon":56},{"title":53,"description":227},"k81poQW_5OAkl8xMa6MLrNXh4uZe8bh8S_9rnM-jWmI",[235,237],{"title":48,"path":49,"stem":50,"description":236,"icon":51,"children":-1},"How long the grid's own code takes per scroll event and at start, and how to run the benchmarks yourself.",{"title":64,"path":65,"stem":66,"description":238,"icon":56,"children":-1},"Make a screen reader announce \"item 4,200 of 10,000\" and let keyboard users move through the grid.",1794785668767]