For Vue 3 and Nuxt
Virtual grids for Vue
Render a list of a million items as a CSS grid. Only the items in view, plus a buffer, are in the DOM.
pnpm add vvirtual-grid
npm install vvirtual-grid
bun add vvirtual-grid
Layout from your CSS
Columns, gaps and item size come from grid-template-columns, gap and a probe element.
Pages on demand
The grid asks your pageProvider for the pages in view and shows placeholders until they arrive.
Positions for every item
Read the rectangle, row and column of any index, rendered or not, without allocating.
ARIA in your hands
The grid adds no roles. Set aria-setsize and aria-posinset from the slot's index.