A list component to display a list of items.

Parameters:
NameTypeDescription
propsobject

Component props.

Properties
NameTypeDescription
customAttributesobject

Custom attributes for the component.

customClassesstring | Array | object

Custom classes for the component.

listItemsArray

An array of list items to display.

spacingstring | number | Array | object

The spacing for the component, as a string, number, array, or object.

typestring

The list type, one of unordered or ordered.

refobject | null

Ref to the component.

Since
  • 1.1.15
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 } }
	    />
);