2019-07-10 02:25:25 +00:00
|
|
|
`List` (component)
|
|
|
|
==================
|
|
|
|
|
2019-07-12 21:27:18 +00:00
|
|
|
List component to display a list of items.
|
2019-07-10 02:25:25 +00:00
|
|
|
|
|
|
|
Props
|
|
|
|
-----
|
|
|
|
|
2019-07-12 21:27:18 +00:00
|
|
|
### `className`
|
|
|
|
|
|
|
|
- Type: String
|
|
|
|
- Default: null
|
|
|
|
|
|
|
|
Additional class name to style the component.
|
|
|
|
|
2019-07-10 02:25:25 +00:00
|
|
|
### `items`
|
|
|
|
|
|
|
|
- **Required**
|
|
|
|
- Type: Array
|
|
|
|
- title: String - Title displayed for the list item.
|
|
|
|
- description: String - Description displayed beneath the list item title.
|
2019-07-12 21:27:18 +00:00
|
|
|
- before: ReactNode - Content displayed before the list item text.
|
|
|
|
- after: ReactNode - Content displayed after the list item text.
|
|
|
|
- onClick: Function - Content displayed after the list item text.
|
|
|
|
- Default: null
|
|
|
|
|
|
|
|
An array of list items.
|
2019-07-10 02:25:25 +00:00
|
|
|
|