Renders only the visible rows of a long list. Rows need a fixed itemHeight.

Banana 1
Banana 2
Banana 3
Banana 4
Banana 5
Banana 6
Banana 7
Banana 8
Banana 9
Banana 10

Props

  • itemsany[]

    All items.

  • itemHeightnumber

    Fixed row height in px.

  • heightnumber
    Default: 320

    Viewport height in px.

  • overscannumber
    Default: 4

    Extra rows rendered above and below.

  • renderItem(item, index) => ReactNode

    Renders a row’s content.

  • getKey(item, index) => key
    Default: index

    Row key.

  • labelstring
    Default: 'List'

    Accessible name.

  • classNamestring
    Default: ''

    Extra classes for the root element.