Skip to main content

List and List Item

The List and ListItem components comprise the parts of an unordered list component.

Example

  • list item one
  • list item two
  • list item three
  • list item four

Props

List Props

PropertyDescriptionValues
classNameCustom CSS classes for styling the <ul>String
propsAdditional list properties from HTML attributes.HTMLUListElement

List Item Props

PropertyDescriptionValues
classNameCustom CSS classes for styling the <ul>String
childrenThe content of the list itemReactNode
propsAdditional list item properties from HTML attributes.HTMLLIElement

Customization

The approach for customization will vary depending on if the customization is intended to be global for all consumers of the UI component or if it is only an override for a particular instance.

  • If the customization is necessary for all use cases, update the component source code in the UI library package directly.
  • Otherwise, you can pass className overrides on both list components.