Voit Docs
  • Read Me
  • Introduction
    • Get Started
  • Design Language
    • Philosophy
  • Accessing The Design System
    • Using Variables
  • Structure Overview
  • Accessibility & Inclusivity
  • Guidelines
    • Design tokens
  • Components
    • Overview
    • Accordion
    • Aspect Ratio
    • Badge
    • Breadcrumb
    • Button
    • Tab Button
    • Tile Button
    • Card (Header, Footer)
    • Checkbox
    • ComboBox
    • Digit Entry
    • Dimming Overlay
    • File Drop
    • Index Bar
    • Info Label
    • Inline Message
    • Link
    • List Item
    • List Tree
    • Page Control
    • Pagination
    • Popover
    • Progress Bar
    • Progress Indicator
    • Radio
    • Segmented Control
    • Select
    • Shortcut
    • Slider
    • Stepper
    • Switch
    • Tag
    • Text Area
    • Text field
    • Toast
    • Tooltip
    • Tool Bar
  • Legal
    • Terms & Conditions
    • Contact US
    • License Agreement
    • Feedback
Powered by GitBook
On this page
  • Overview
  • When to use
  • When not to use
  • Types
  • Anatomy
  • Styles
  • States
  • Size
  • Accessibility
  • Example
  1. Components

List Item

List items are individual elements within a list, used to display a series of related content. They include text and can be styled to indicate different states, such as active, selected, or disabled.

PreviousLinkNextList Tree

Last updated 7 months ago

Overview

List items structure related information into easily scannable units, supporting quick interactions.

When to use

  • When data is grouped or follows a hierarchy, list items can help visualize these relationships clearly.

  • List items work well for menus where users need to quickly navigate to different sections or options.

  • Use list items when presenting grouped actions, such as in settings menus where users can toggle options or view additional information.

  • If you need to display information with interactive or status-related elements, list items can include icons, checkboxes, or other controls to indicate the state of each item.

When not to use

  • Avoid list items when the content is too complex or requires a more robust structure, such as cards or tiles for displaying multimedia.

  • Don’t use list items when the information isn’t logically grouped or related. This can confuse users.

  • Don’t use list items if no action or interactivity is required, as this may mislead users into thinking they are clickable or interactive.

  • Avoid list items when space is constrained and users won’t be able to scroll, as it may cause content to become hidden or difficult to access.

Types

Anatomy

  1. List's Title (for list groups): A heading that introduces and categorizes the group of list items.

  2. Leading Content: Optional visual element representing status or providing interaction options. (Icon, Checkbox, Switch, etc.)

  3. Text: Main label indicating the item's content or function.

  4. Helper: Optional brief message providing additional context or details about the item.

  5. Slot: A placeholder element that can be swapped with other components.

  6. Check Box: Allows the user to select or deselect the item.

  7. Trailing Content: Optional element at the end of the list item indicating further actions. (Shortcut, Icon, Chevron, etc.)

  8. Switch: A toggle element enabling on/off states for the list item.

  9. Description: Optional extended information for deeper context about the item.

  10. Container: The structural wrapper that holds all the list item elements together.

Styles

States

Size

Size
Text (px)
Description (px)
Icon (px)
Corner (px)
Container Height (px)

Small

14

12

16

8

37

Medium

16

12

20

8

44

Large

18

14

20

8

45

Accessibility

  • Keyboard Navigation: List items should support intuitive keyboard navigation, allowing users to tab through or move between items easily without using a mouse.

  • Clear Focus States: Ensure list items have clear and distinguishable focus states to help keyboard and screen reader users identify interactive elements.

  • Consistent Visual Indicators: Use consistent icons or visual indicators across all list items to help users quickly understand actions, statuses, or navigation options.

  • Accessible Color Contrast: Ensure sufficient color contrast between text, icons, and the background to support users with visual impairments.

Example

  • Settings Menu in a Mobile App: Present various toggleable options such as Wi-Fi, Bluetooth, or Notifications using list items with switches or icons.

  • Product Categories on an E-commerce Site: Use list items to present different product categories with leading icons to help users navigate the store sections quickly.

  • Task List in a To-Do App: Display tasks with checkboxes for completion, along with optional trailing icons for actions like editing or deleting tasks.