List component for Stripe Apps
Display a list of information in a variety of preconfigured formats.
To add the List
component to your app:
You can use the onAction
handler to respond to press
events on list items.
List props
Property | Type |
---|---|
| Required
One or more |
| Optional
Press event handler which receives the corresponding key of the |
List items
Every list is made up of a collection of ListItem
components. Uniquely identify each list item using the key
prop.
ListItem props
Property | Type |
---|---|
| Optional
Icon that appears to the left of the content and description. Will be overridden by |
| Optional
The id of the item. This will be passed into the |
| Optional
Image that appears to the left of the content and description. Will override |
| Optional
Secondary content for the |
| Optional
Size of the |
| Optional
Title content for the |
| Optional
The value to display on the right-hand side of the item. |
Secondary title
You can add a secondary title to a list item using the secondaryTitle
property.
Values
The ListItem
value
prop can take arbitrary JSX.
Unsupported components
Note that certain interactive components won’t work as value
props in a ListItem
: