Picture of the author

List

List components provide a structured and visually appealing way to present collections of similar items. This component ensures clarity and efficient information processing by offering a well-organized layout, highlighting key details, and allowing for optional interactive features like sorting or filtering.

The Shawshank RedemptionThe Lord of the Rings: The Two TowersStar Wars


API Reference

PropTypeDefault
marker
MarkerTypes
-


Examples

Circle

The Shawshank RedemptionThe Lord of the Rings: The Two TowersStar Wars

Decimal

The Shawshank RedemptionThe Lord of the Rings: The Two TowersStar Wars

Upper Roman

The Shawshank RedemptionThe Lord of the Rings: The Two TowersStar Wars

Usage

General Guidelines

Do's

  • Present information clearly and concisely, use well-formatted text.
  • Use proper color contrast and allow for screen reader compatibility.

Don'ts

  • Don't overload the list with information, limit clutter and focus on essential details.

Writing Guidelines

When to use

  • When displaying a collection of similar items that require individual presentation.
  • When the order of items is important or chronological.
  • When information needs to be easily scanned and compared.

When not to use

  • Don't use list when dealing with complex data sets requiring advanced organization (consider using a data table component).

Use Case

General Use Cases

List typically used when displaying a list of products in an online store or presenting a chronological timeline of events.

Digital Health Use Cases

For digital health applications List can be used when listing daily medication reminders with details like dosage and time.

Also when presenting a list of upcoming doctor appointments with date, time, and location.

Accessibility Guidelines

  • Add aria-labelledby to provide an accessible name for components that don't have visible text, and to distinguish between multiple item with identical visible text.
  • Use aria-selected to indicates the current "selected" state of various widgets.
  • Use aria-disabled to indicates that the element is perceivable but disabled, so it is not editable or otherwise operable.
  • Add aria-multiselected attribute to indicates that the user may select more than one item from the current selectable descendants.


On this page