Elements

Reference

Virtual List

A ledger that only mounts the rows on stage: the viewport keeps its scroll length by a spacer sized from the row height, the rows themselves are positioned against it — a ten-thousand-row list costs the DOM a window, not the ledger. Fixed-height rows keep the arithmetic honest without measurement passes.

Root

#VirtualList

A ledger that only mounts the rows on stage: the viewport keeps its scroll length by a spacer sized from the row height, the rows themselves are positioned against it — a ten-thousand-row list costs the DOM a window, not the ledger. Fixed-height rows keep the arithmetic honest without measurement passes.

PropTypeDefaultDescription
itemsArray as PropType<unknown[]>—
itemHeightNumber as PropType<number>40The height every row occupies — fixed rows keep it simple.
height[Number, String] as PropType<number | string>320The viewport height the ledger scrolls within.
Slot
#item