Skip to main content

List

The List component is a continuous vertical index of text or images. The List component uses List Item or Nav-List Item components to create a list.

Style Attributes

NameTypeDefaultDescription
denseboolfalseIf true, compact vertical padding is used for the list and list items.
disablePaddingboolfalseIf true, the vertical padding is removed from the list.

Subcomponents

The List component has two possible subcomponents, the List Item and the Nav-List Item.

List Item

A text-based item for a list.

For further details, see the List Item component.

Properties

NameTypeDefaultDescription
textstringThe text for the list item.
buttonboolfalseIf true, the list item is a button and enables the selected and disabled properties.
selectedboolfalseIf true, a selected style is applied to the list item.
disabledboolfalseIf true, the list item is disabled.

A navigational element within a list.

For further details, see the Nav-List Item component.

Properties

NameTypeDefaultDescription
textstringThe text for the nav list item.
pathstringThe navigational path for the nav list item.
exactboolfalseIf true, the active style will be applied if the location is matched exactly.
disabledboolfalseIf true, the nav list item is disabled.

The Add Left Component allows the placement of an icon, badge, chip or container to the left-hand side of a list item or nav-list item.

For more detail on the List component, see the MUI developer docs.