List
<List>
renders a <ul>
element by default with reset styles.
Import
import { List, ListProps } from '@vtex/admin-ui'
Behavior
ReferenceError: List is not defined
Variation
Ordered
ReferenceError: List is not defined
Customization
You can use the csx
property to handle different styles.
Example
ReferenceError: List is not defined
Props
List
Besides the props listed bellow, you can use all the props accepted by the ul
JSX element.
Name | Type | Description | Required | Default |
---|---|---|---|---|
style | ListStyleType | List style | 🚫 | disc |
csx | StyleProp | Defines component styles | 🚫 | {} |
List.Item
Besides the props listed bellow, you can use all the props accepted by the li
JSX element.
Name | Type | Description | Required | Default |
---|---|---|---|---|
csx | StyleProp | Defines component styles | 🚫 | {} |