A list component to display a list of items.
Parameters:
Name | Type | Description | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
props | object | Component props. Properties
| ||||||||||||||||||
ref | object | | Ref to the component. |
- Since
- 1.1.15
- Source
Returns:
- Type:
- JSX.
Element
Example
import List from '@gravityforms/components/react/admin/modules/List';
return (
<List
listItems={
[
'Example list item 1.',
'Example list item 2.',
'Example list item 3.',
]
}
spacing={ { '': 6, md: 8 } }
/>
);