• KMKevinBanana bossAwake

Props

List

  • itemsListItem[]

    Rows; ones with onClick become buttons. See the ListItem table below.

  • dividedboolean
    Default: true

    Draw lines between rows.

  • classNamestring
    Default: ''

    Extra classes for the root element.

ListItem

  • keystring | number

    Unique key of the row.

  • primaryReactNode

    Main text of the row.

  • secondaryReactNode

    Smaller text under the primary text.

  • leadingReactNode

    Content before the text, e.g. an icon or avatar.

  • trailingReactNode

    Content at the end of the row.

  • onClick() => void

    Makes the row a button.