List

Type: React component

A default list that renders items vertically. This component should render ListItem components.

When a large amount of ListItem components are being rendered and render times and/or scrolling performance is poor, consider implementing a VirtualList instead.

Props

  1. items

    (Required)

    Type: Array<FDS~ItemWithId>

  2. onItemClick

    (Optional)

    Default value

  3. onItemDoubleClick

    Default value

  4. paddingSize

    (Optional)

    Default value

  5. renderItem

    (Required)

    Type: Function

    A callback that is called for each item in the items array, which should render an instance of ListItem.

    Arguments

  6. selectedItem

    (Optional)

    Default value