| The items to render.
If the items are simple arrays, the index will be used as the key.
If the items are objects, the keyField will be used as the key.
Type: array | |
|---|
| The direction of the scroller.
Type: string Values: verticalhorizontal | 'vertical' |
|---|
| Indicates if the items need to react to changes in their size.
If disabled the itemSize prop is required and you will get improved performance.
If enabled the minItemSize prop is required and you
will have reduced performance but the ability to reactively size list items
Type: boolean Values: truefalse | false |
|---|
| Display height (or width in horizontal mode) of the items in pixels
used to calculate the scroll size and position.
Required if DYNAMIC is false
Type: number | null |
|---|
| The tag to use for the items.
Type: string | 'div' |
|---|
| The key field to use for the items.
If the items are objects, the scroller needs to be able to identify them.
By default it will look for an id field on the items.
This can be configured with this prop if you are using another field name.
Type: string | 'id' |
|---|
| The tag to use for the list.
Type: string | 'div' |
|---|
| Minimum size used if the height (or width in horizontal mode) of a item is unknown.
Is required for the initial render of items in DYNAMIC size mode.
Type: number|string | null |
|---|
| The height of the scroller.
Can be a number (in pixels) or a string (in CSS units).
Type: string|number | '100%' |
|---|
| The width of the scroller.
Can be a number (in pixels) or a string (in CSS units).
Type: string|number | '100%' |
|---|