# List Item

<flow-list-item>
Stable

A List Item is a single option or action in a list.

List Items are used to build up a List of options or actions. See the examples below for the supported types and styles.

# Examples

# List Item Types

Set the List Item type using the type attribute. Supported List Item types are:

  • list - a text item representing an action or navigation link.
  • checkbox - a checkbox option item.
  • radio - a radio option item.

WARNING

A single list must contain items of the same type. Use List Groups to combine list items of different types.

# List Item Icons

Icons may be added to a list item by setting the icon or trailing-icon attribute. See the Icon component for details of how to specify built-in and external icons.

# Two-Line List Items

Set the line-two attribute to create a two-line list item. The primary item text can be set using either the default slot or by setting the line-one attribute.

Note that the two-line attribute must be set on the parent List component to correctly format the two-line items.

# List Item States

List-type List Items can be set to selected or activated following Material Design (opens new window) guidelines. Selection indicates the currently selected item out of a set of items. Activation generally indicates the currently active navigation link.