woocommerce/plugins/woocommerce-admin/docs/components/packages/list.md

30 lines
682 B
Markdown
Raw Normal View History

`List` (component)
==================
List component to display a list of items.
Props
-----
### `className`
- Type: String
- Default: null
Additional class name to style the component.
### `items`
- **Required**
- Type: Array
- title: String - Title displayed for the list item.
- description: String - Description displayed beneath the list item title.
- 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.
2019-07-24 00:30:29 +00:00
- className: String - Additional class name to style the list item.
- Default: null
An array of list items.