Skip to main content

List Item

A list item is a single element in a list that displays specific information in an organised manner, allowing users to optionally interact with it.

Dos and Don'ts

Do
  • Aim to keep the primary text to a single line without wrapping, and the secondary text to two lines if possible.
  • Use list items to logically group items that follow the same content structure.
Don't
  • Consider a different component or clarify the design if you require lots of text.
  • Do not use if the list content needs to be nested more than one level deep and becomes overly complex and lengthy.


Anatomy

Anatomy of the list item component.
  1. Primary text: Provides an overview of the content.
  2. Secondary content (Optional): Provides additional detail if required.
  3. Divider (Optional): Visually defines the end of one list item and the beginning of the next.
  4. Icon (Optional): Non-interactive icon that visually supports the primary text.
  5. Icon with background (Optional): Non-interactive icon that visually supports the primary text.
  6. Avatar (Optional): Visually supports the primary text if it references an individual or business.
  7. Payment method icon (Optional): Non-interactive payment method icon that supports the primary text.
  8. Thumbnail (Optional): Small image or media content that visually supports the primary text.
  9. Checkbox (Optional): Interactive element that allows users to select or deselect options from a list of choices.
  10. Radio (Optional): Interactive element that allows users to select a single option from a predefined set of choices.
  11. Icon - interactive (Optional): Interactive icon that indicates an action.
  12. Meta text (Optional): Provides more information about the context, status, or attributes of the primary content.
  13. Tag (Optional): Visual element used to represent and categorise information, only non-interactive variants permitted.
  14. Switch (Optional): Interactive element that allows users to switch between two states.
  15. Badge (Optional): Use to display a numeric value or count.

Variants

Non-interactive

The non-interactive variation should be used when the list item doesn't require any component level interactive states tied to the instance.

List item component in non-interactive variant.

Interactive - Form selection

Includes form elements such as checkbox, radio or switch, which allows the user to make one or multiple choices.

Examples of the list item component in interactive variant with form selections

Interactive - Navigation

Functions as a link to redirect the user to a new destination.

Examples of the list item component in interactive variant with navigations

Interactive - Action

Functions as a button to trigger an immediate operation or event.

Examples of the list item component in interactive variant with actions

Modifiers

Compact

The height of the component is decreased to reduce the vertical space, and used when space needs to be saved.

If the secondary text is required, don't apply the compact prop.
List item component in compact variant.

Secondary content

Use secondary content to add supporting details, such as text and tag, alongside the primary text.

List item component with secondary content.

Bold primary text

There's an option to use bold in the Primary text.

List item component with bold primary text.

Leading content (Non-interactive)

Avatar, Icon with background and Thumbnail are not available in the compact size.

Avatar

Not available in the Compact variant.

List item component with leading avatar.

Icon

Any decorative icon can be inserted into the placeholder.

List item component with leading icon.

Icon with background

Any decorative icon can be inserted into the placeholder.

List item component with leading icon with background.

Payment method

Payment method icon can be selected in properties.

List item component with leading payment method.

Thumbnail

Not available in the Compact variant.

List item component with leading thumbnail.

Badge

Use badge to display a numeric value or count.

List item component with leading badge.

Leading content (Interactive)

Avatar, Icon with background and Thumbnail are not available in the compact size.
All form elements: Checkbox, Radio and Switch display their own interactive states rather than the list item container.

Avatar

Not available in the Compact variant.

Interactive list item component with leading avatar.

Checkbox

Alignment should be consistent through the pillar.

Interactive list item component with leading checkbox.

Icon

Any decorative icon can be inserted into the placeholder.

Interactive list item component with leading icon.

Icon with background

Any decorative icon can be inserted into the placeholder.

Interactive list item component with leading icon.

Payment method

Payment method icon can be selected in properties..

Interactive list item component with leading payment method.

Radio

Alignment should be consistent through the pillar.

Interactive list item component with leading radio.

Thumbnail

Not available in the Compact variant.

List item component with leading thumbnail.

Badge

Use badge to display a numeric value or count.

List item component with leading badge.

Trailing content (Non-interactive)

Icon

Any decorative icon can be inserted into the placeholder.

Interactive list item component with trailing icon.

Meta text

Highlights additional basic information about the List item.

Interactive list item component with trailing meta text.

Tag

Alignment should be consistent through the pillar.

Interactive list item component with trailing tag.

Badge

Use badge to display a numeric value or count.

Interactive list item component with trailing badge.

Trailing content (Interactive)

All form elements: Checkbox, Radio and Switch display their own interactive states rather than the list item container.

Icon

Any decorative icon can be inserted into the placeholder.

Interactive list item component with trailing icon.

Checkbox

Alignment should be consistent through the pillar.

Interactive list item component with trailing checkbox.

Meta text

Highlights additional basic information about the List item.

Interactive list item component with trailing meta text.

Radio

Alignment should be consistent through the pillar.

Interactive list item component with trailing radio.

Switch

Used to quickly switch between two possible states.

Interactive list item component with trailing switch.

Tag

Alignment should be consistent through the pillar.

Interactive list item component with trailing tag.

Badge

Use badge to display a numeric value or count.

Interactive list item component with trailing badge.

Divider

The divider is used to visually separate individual list items from each other. Dividers should never be used on the last item within a group.

Example of three list item components stacked vertically with dividers.

Overrides

Variants

Overview of overrides available at variant level for the Avatar, Tag and Icon with background.
  1. Avatar: The Avatar's variants can be overridden.
  2. Tag: The Tag's variants can be overridden.
  3. Icon with background: The Icon with background's variants can be overridden.

Alignment / Layout

List item components with structure markers showing vertical alignment, horizontal padding and trailing content alignment overrides.
  1. Vertical alignment: The vertical alignment of both leading and trailing content can be adjusted to centre alignment. However, both must maintain the same alignment.
  2. Horizontal spacing: Horizontal padding can be removed when being used within a component e.g. Modal, bottom sheet.
  3. Trailing content alignment: Trailing content can be aligned to the right edge or hug the body content, maintaining 12px of spacing between elements.

Selected state

Prioritise using the selected state from form control variants. The following recommendation applies to the navigation variant only.

Find more information in the Selected state patterns documentation.
List item components with icon colour and tick icon overrides in selected state.
  1. Icon colour The icon colour token can be overridden with $color-content-brand-solid to provide an additional visual cue.
  2. Tick icon: Highly recommended using the tick icon to indicate the selected page or link. Optional when the distinction between states is clear.

Colour

List item components with icon colour override options.
  1. Trailing icon colour - Positive: The icon colour token can be overridden to $color-content-positive to convey positive information for the user.
  2. Trailing icon colour - Error The icon colour token can be overridden to $color-content-error to highlight critical information for the user. Please review whether an icon alone is sufficient, or whether an error notification or toast would communicate the message more effectively.

Layout

Stacking

List items can be vertically stacked and horizontally, and if dividers are being used; it is suggested that the last item's divider is removed.

Example of a group of list item components stacked vertically.
Example of a group of list item components stacked horizontally in two columns.

Form controls

The radio form controls should always be used within a group, allowing users to make a single selection from a predefined set of options.

Example of a group of list item components with form controls.

Sizes

Depending on the properties applied to the component, the minimum height of the component fluctuates.

Compact Secondary text Minimum height Notes
No No 56 px One line of primary text.
No Yes 76 px One line of primary and secondary text.
Yes No 48 px One line of primary text.

Placement

Inset container

List items at both wide & narrow can be full width of an inset container.

Example of a group of list item components in a wide screen size in an inset container.
Example of a group of list item components in a narrow screen size in an inset container.

Device container

Only List items at narrow have the option to be the full width of the device.

Example of a group of list item components in a narrow screen size in a device container.

Interactions

Interactive variants

The entire container for interactive variants is clickable.

Example of the interactive area in list item components.

Overflow

Primary and secondary text

The recommendation is to keep the copy short and concise to allow users to easily browse. If the length of the primary or secondary text exceeds the available horizontal space, the content will wrap onto a new line with no maximum.

Example of a group of list item components with primary and secondary text overflow.

Trailing content

If the trailing content contains a text element, it's maximum width is 1/3 of the available space. If the width is exceeded the content will wrap onto a new line.

Example of a group of list item components with trailing meta text overflow.
Example of a group of list item components with trailing tag text overflow.

States

Interactive list items have two states: unselected and selected. How the selected state is presented depends on the interaction type.

Form selection

When a form control is present, the form control element indicates the selected state.

Unselected

Form selection list items with unselected checkbox, radio and switch form controls.

Selected

Form selection list items with selected checkbox, radio and switch form controls.

In navigation, the currently selected item should be indicated using bold text, with an optional tick icon. Apply this convention consistently throughout the experience.

Unselected

A country list with regular weight primary text and no tick icons.

Selected

A country list with Germany selected using bold text and a trailing tick icon.

If bold text is used for unselected items, a trailing tick icon should always be present to clearly distinguish them from the selected state. Additionally, the icon can use a brand colour to provide an additional visual cue and reinforce the distinction between states.

Unselected

A country list with bold primary text on all items and no tick icons.

Selected

A country list with bold primary text on all items and Germany distinguished by a trailing tick icon.

Action

Action list items are selectable and users can interact with them, but they do not require a persistent selected state. Selecting an action triggers an immediate outcome rather than indicating which item is currently selected.

No selected state

An icon button with an opened popover menu containing the action list items Deactivate, Edit charges and Delete area.

Interactive states

The interactive variation includes all interactive states, while the non-interactive variation only includes the default state.

All form elements: Checkbox, Radio and Switch display their own interactive states alongside the container's active overlay.

Default

Examples of list item components in the default state.

Active

Examples of list item components in the active state.

Disabled

Examples of list item components in the disabled state.

Examples

LTR example

Here are some examples of a list item component in LTR context:

Examples of list item components in left-to-right context.
Examples of list item components in left-to-right context.

RTL example

Here are some examples of a list item component in RTL context:

Examples of list item components in right-to-left context.
Examples of list item components in right-to-left context.

Accessibility

Text scaling

Text with critical information should wrap to the next line to ensure understandability. Truncation might happen but it should be kept to a minimum.

In case truncation happens on important information offer an alternative for the user to read the full content. For example, add a “see more” link button to expand the container and provide access to the content.

Do
Example of list item component with text scaling applied correctly.
Don't
Example of list item component with text scaling applied incorrectly.

Check out the Text scaling documentation for more information.
Back to top