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.
| Prop | Type | Default | Description |
|---|---|---|---|
items | Array as PropType<unknown[]> | — | |
itemHeight | Number as PropType<number> | 40 | The height every row occupies — fixed rows keep it simple. |
height | [Number, String] as PropType<number | string> | 320 | The viewport height the ledger scrolls within. |
| Slot |
|---|
#item |