List

A list component embeds a formatted list—bulleted or numbered—into page content.

Examples

Basic

  • First
  • Second
  • Third

Inline

  • First
  • Second
  • Third

Ordered

  1. First
  2. Second
  3. Third

Plain

  • First
  • Second
  • Third

With horizontal rules

  • First
  • Second
  • Third

With icons

  • First
  • Second
  • Third

With large icons

  • First
  • Second
  • Third

Props

List

*required
NameTypeDefaultDescription
aria-labelstringAdds an accessible label to the list.
childrenReact.ReactNodenullAnything that can be rendered inside of the list
classNamestring''Additional classes added to the list
component'ol' | 'ul'ListComponent.ulSets the type of the list component.
iconSize'default' | 'large''default'Modifies the size of the icons in the list
isBorderedbooleanfalseModifies the list to add borders between items
isPlainbooleanfalseModifies the list to include plain styling
refNo type infonull
typeOrderTypeOrderType.numberSets the way items are numbered if component is set to "ol".
variantListVariant.inlinenullAdds list variant styles

ListItem

*required
NameTypeDefaultDescription
childrenReact.ReactNodenullAnything that can be rendered inside of list item
iconReact.ReactNode | nullnullIcon for the list item

CSS variables

Expand or collapse columnSelectorVariableValue