Skip to content

Material 3

Components

List

Lists are continuous, vertical indexes of text and images.

9:30

Messages

AAli ConnorsBrunch this weekend?9:12
SSandra AdamsPhotos from the summer trip8:40
TTrevor HansenBirthday gift ideasTue
BBritta HoltRecipe to try on FridayMon
JJonas MeyerSee you at eightSun

Lists are continuous, vertical indexes of text and images. Use a list to help people find a specific item and act on it. To show content of several kinds about one subject, such as an image, text and actions, use a card instead.

A list is made of these parts:

PartUse
ListThe container of the items
ListItemOne item, with its parts in slots
TextFrom react-aria-components: the label, the supporting text, the overline and the trailing text of an item
useDragAndDropThe hook that lets people drag the items
import { List, ListItem, useDragAndDrop } from '@material-web/react'
import { Text } from 'react-aria-components'

Basic list

Put one ListItem per item in a List, and write the parts of an item as its children, each with its slot. Import Text from react-aria-components.

FavoriteAli ConnorsBrunch this weekend?100+
Sandra AdamsOui oui12
Trevor HansenBirthday gift3
import { Icon, IconButton, List, ListItem } from '@material-web/react'
import { Text } from 'react-aria-components'

export default function Basic() {
  return (
    <List aria-label="Contacts" variant="segmented" className="w-90">
      <ListItem id="ali" textValue="Ali Connors">
        <Icon slot="leading" name="person" />
        <Text slot="overline">Favorite</Text>
        <Text slot="label">Ali Connors</Text>
        <Text slot="description">Brunch this weekend?</Text>
        <Text slot="trailing">100+</Text>
        <IconButton slot="trailing" aria-label="More options for Ali Connors">
          <Icon name="more_vert" />
        </IconButton>
      </ListItem>
      <ListItem id="sandra" textValue="Sandra Adams">
        <Icon slot="leading" name="person" />
        <Text slot="label">Sandra Adams</Text>
        <Text slot="description">Oui oui</Text>
        <Text slot="trailing">12</Text>
        <IconButton slot="trailing" aria-label="More options for Sandra Adams">
          <Icon name="more_vert" />
        </IconButton>
      </ListItem>
      <ListItem id="trevor" textValue="Trevor Hansen">
        <Icon slot="leading" name="person" />
        <Text slot="label">Trevor Hansen</Text>
        <Text slot="description">Birthday gift</Text>
        <Text slot="trailing">3</Text>
        <IconButton slot="trailing" aria-label="More options for Trevor Hansen">
          <Icon name="more_vert" />
        </IconButton>
      </ListItem>
    </List>
  )
}
  • Ids: Give each ListItem an id, which identifies it in the list's selection and actions.
  • Text values: Give each ListItem a textValue with the text of its label, which names the item. An item whose children are plain text uses them as its textValue. For any other item, textValue is required.
  • Dynamic lists: Write the items as the children of the list, or pass the list its items and a function that returns the ListItem of each one. Pass dependencies along with them when that function depends on other values. See Collections and React Aria's collections guide.
  • Outside a list: A ListItem outside a List throws an error.

A List takes the props of React Aria's GridList, and a ListItem those of its GridListItem. The Props tab lists them.

Note: GridListSection and GridListLoadMoreItem from react-aria-components are not styled.

A list comes in two variants. Set variant to standard (the default) or segmented. The variant is a visual choice and does not change how a list behaves.

Ali ConnorsBrunch this weekend?
Sandra AdamsOui oui
Trevor HansenBirthday gift
Ali ConnorsBrunch this weekend?
Sandra AdamsOui oui
Trevor HansenBirthday gift
import { List, ListItem } from '@material-web/react'
import { Text } from 'react-aria-components'

const contacts = [
  { id: 'ali', name: 'Ali Connors', message: 'Brunch this weekend?' },
  { id: 'sandra', name: 'Sandra Adams', message: 'Oui oui' },
  { id: 'trevor', name: 'Trevor Hansen', message: 'Birthday gift' },
]

export default function Variants() {
  return (
    <>
      {(['standard', 'segmented'] as const).map((variant) => (
        <List key={variant} aria-label={`Contacts, ${variant}`} variant={variant} className="w-72">
          {contacts.map((contact) => (
            <ListItem key={contact.id} id={contact.id} textValue={contact.name}>
              <Text slot="label">{contact.name}</Text>
              <Text slot="description">{contact.message}</Text>
            </ListItem>
          ))}
        </List>
      ))}
    </>
  )
}

Standard list

A standard list shows its items one after another, with no gap between them.

Inbox24
Starred3
Sent
import { Icon, List, ListItem } from '@material-web/react'
import { Text } from 'react-aria-components'

export default function Standard() {
  return (
    <List aria-label="Folders" variant="standard" className="w-90">
      <ListItem id="inbox" textValue="Inbox">
        <Icon slot="leading" name="inbox" />
        <Text slot="label">Inbox</Text>
        <Text slot="trailing">24</Text>
      </ListItem>
      <ListItem id="starred" textValue="Starred">
        <Icon slot="leading" name="star" />
        <Text slot="label">Starred</Text>
        <Text slot="trailing">3</Text>
      </ListItem>
      <ListItem id="sent" textValue="Sent">
        <Icon slot="leading" name="send" />
        <Text slot="label">Sent</Text>
      </ListItem>
    </List>
  )
}

Segmented list

A segmented list separates the items with a gap and rounds the corners at the two ends of the list. Use it for a contained list, where the gaps set the items apart as a group.

ProfileName, photo and bio
SecurityPassword and sign-in
NotificationsEmail and push
import { Icon, List, ListItem } from '@material-web/react'
import { Text } from 'react-aria-components'

export default function Segmented() {
  return (
    <div className="rounded-shape-xl bg-surface-container p-space-200">
      <List aria-label="Account" variant="segmented" className="w-80">
        <ListItem id="profile" textValue="Profile">
          <Icon slot="leading" name="person" />
          <Text slot="label">Profile</Text>
          <Text slot="description">Name, photo and bio</Text>
        </ListItem>
        <ListItem id="security" textValue="Security">
          <Icon slot="leading" name="lock" />
          <Text slot="label">Security</Text>
          <Text slot="description">Password and sign-in</Text>
        </ListItem>
        <ListItem id="notifications" textValue="Notifications">
          <Icon slot="leading" name="notifications" />
          <Text slot="label">Notifications</Text>
          <Text slot="description">Email and push</Text>
        </ListItem>
      </List>
    </div>
  )
}

Slots

  1. leading
  2. overline
  3. label
  4. description
  5. trailing
  6. selection
SlotChildUse
leadingAn Icon, a button, a Checkbox or an element of your ownBefore the text. See Leading.
overlineA TextThe overline, over the label
labelA TextThe label text
descriptionA TextThe supporting text, under the label
trailingA Text, an Icon, a button, a Checkbox or an element of your ownAt the end of the item, in the order written. See Trailing.
selectionA CheckboxThe item's selection checkbox

Set slot on each part of an item to place it.

  • A button, including a selectable one, is disabled with the item. A button also takes the drag slot.
  • A Checkbox in the leading or trailing slot is the item's selection checkbox as well.
  • A part with a slot the item does not have throws an Invalid slot error.
  • An element of your own is placed by its slot attribute, which is not checked.
  • Give every part a slot. A part without one is placed wherever the item has room.

See Slots.

Text

Write an item's text in a Text for each part, and set its slot:

  • label is the label text.
  • description is the supporting text, under the label.
  • overline is the overline, over the label.
  • trailing is the trailing text, such as a count.

For an item with a label alone, write plain text as its children: <ListItem>Label text</ListItem>.

Label text alone
One line100+
Two linesSupporting text under the label100+
OverlineThree linesSupporting text under the label100+
A wrapping lineSupporting text that is long enough to wrap adds its lines to the item
import { Icon, List, ListItem } from '@material-web/react'
import { Text } from 'react-aria-components'

export default function TextSlots() {
  return (
    <List aria-label="Inbox" variant="segmented" className="w-90">
      <ListItem id="label">Label text alone</ListItem>
      <ListItem id="one" textValue="One line">
        <Icon slot="leading" name="mail" />
        <Text slot="label">One line</Text>
        <Text slot="trailing">100+</Text>
      </ListItem>
      <ListItem id="two" textValue="Two lines">
        <Icon slot="leading" name="mail" />
        <Text slot="label">Two lines</Text>
        <Text slot="description">Supporting text under the label</Text>
        <Text slot="trailing">100+</Text>
      </ListItem>
      <ListItem id="three" textValue="Three lines">
        <Icon slot="leading" name="mail" />
        <Text slot="overline">Overline</Text>
        <Text slot="label">Three lines</Text>
        <Text slot="description">Supporting text under the label</Text>
        <Text slot="trailing">100+</Text>
      </ListItem>
      <ListItem id="wrapped" textValue="A wrapping line">
        <Icon slot="leading" name="mail" />
        <Text slot="label">A wrapping line</Text>
        <Text slot="description">
          Supporting text that is long enough to wrap adds its lines to the item
        </Text>
      </ListItem>
    </List>
  )
}

Leading

Put a part in the leading slot to show it before the text: an Icon, or an avatar, an image or a video thumbnail of your own. An Icon is sized by the item. Size an element of your own with classes: size-10 rounded-full for a 40dp round avatar, size-14 rounded-shape-sm for a 56dp image, and h-14 w-25 rounded-shape-sm for a 100 by 56dp video thumbnail.

Leading icon20dp
Leading avatar40dp, round
Leading image56dp
Leading video100 by 56dp
import { Icon, List, ListItem } from '@material-web/react'
import { Text } from 'react-aria-components'

const picture = `data:image/svg+xml,${encodeURIComponent(
  '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 56"><rect width="100" height="56" fill="#6750A4"/><path d="M42 16 62 28 42 40Z" fill="#fff"/></svg>',
)}`

export default function Leading() {
  return (
    <List aria-label="Media" variant="segmented" className="w-90">
      <ListItem id="icon" textValue="Leading icon">
        <Icon slot="leading" name="star" />
        <Text slot="label">Leading icon</Text>
        <Text slot="description">20dp</Text>
      </ListItem>
      <ListItem id="avatar" textValue="Leading avatar">
        <span
          slot="leading"
          aria-hidden
          className="grid size-10 place-items-center rounded-full bg-primary-container text-title-md text-on-primary-container"
        >
          A
        </span>
        <Text slot="label">Leading avatar</Text>
        <Text slot="description">40dp, round</Text>
      </ListItem>
      <ListItem id="image" textValue="Leading image">
        <img
          slot="leading"
          src={picture}
          alt=""
          className="size-14 rounded-shape-sm object-cover"
        />
        <Text slot="label">Leading image</Text>
        <Text slot="description">56dp</Text>
      </ListItem>
      <ListItem id="video" textValue="Leading video">
        <img slot="leading" src={picture} alt="" className="h-14 w-25 rounded-shape-sm" />
        <Text slot="label">Leading video</Text>
        <Text slot="description">100 by 56dp</Text>
      </ListItem>
    </List>
  )
}

Trailing

Put parts in the trailing slot to show them at the end of the item, in the order written: an Icon, trailing text, or icon buttons. A press on a button does not call the item's onAction.

Trailing text2.4 MB
Trailing icon
Trailing icon buttons2.4 MB
import { Icon, IconButton, List, ListItem } from '@material-web/react'
import { Text } from 'react-aria-components'

export default function Trailing() {
  return (
    <List aria-label="Downloads" variant="segmented" className="w-90">
      <ListItem id="text" textValue="Trailing text">
        <Text slot="label">Trailing text</Text>
        <Text slot="trailing">2.4 MB</Text>
      </ListItem>
      <ListItem id="icon" textValue="Trailing icon">
        <Text slot="label">Trailing icon</Text>
        <Icon slot="trailing" name="chevron_right" className="rtl:icon-mirrored" />
      </ListItem>
      <ListItem id="buttons" textValue="Trailing icon buttons">
        <Text slot="label">Trailing icon buttons</Text>
        <Text slot="trailing">2.4 MB</Text>
        <IconButton slot="trailing" aria-label="Share">
          <Icon name="share" />
        </IconButton>
        <IconButton slot="trailing" aria-label="Delete">
          <Icon name="delete" />
        </IconButton>
      </ListItem>
    </List>
  )
}

Empty state

Pass renderEmptyState a function that returns what the list shows while it has no items.

No results
import { List } from '@material-web/react'
import { Text } from 'react-aria-components'

export default function Empty() {
  return (
    <List
      aria-label="Results"
      className="w-90"
      renderEmptyState={() => (
        <Text className="block px-space-200 py-space-150 text-body-lg text-on-surface-variant">
          No results
        </Text>
      )}
    >
      {[]}
    </List>
  )
}

Handling actions

Set onAction on a ListItem, or on the List, to handle a click, a tap or Enter on an item. The list's onAction is called with the id of the item, and the item's own with no argument. A press on a button in the item does not call onAction.

Ali ConnorsBrunch this weekend?
Sandra AdamsOui oui
Trevor HansenBirthday gift

Nothing yet

import { Icon, IconButton, List, ListItem } from '@material-web/react'
import { useState } from 'react'
import { Text } from 'react-aria-components'

const contacts = [
  { id: 'ali', name: 'Ali Connors', message: 'Brunch this weekend?' },
  { id: 'sandra', name: 'Sandra Adams', message: 'Oui oui' },
  { id: 'trevor', name: 'Trevor Hansen', message: 'Birthday gift' },
]

export default function Actions() {
  const [last, setLast] = useState('Nothing yet')
  return (
    <div className="flex w-90 flex-col gap-space-200">
      <List
        aria-label="Messages"
        variant="segmented"
        items={contacts}
        onAction={(id) => setLast(`Opened ${id}`)}
      >
        {(contact) => (
          <ListItem textValue={contact.name}>
            <Text slot="label">{contact.name}</Text>
            <Text slot="description">{contact.message}</Text>
            <IconButton
              slot="trailing"
              aria-label={`Bookmark ${contact.name}`}
              onPress={() => setLast(`Bookmarked ${contact.id}`)}
            >
              <Icon name="bookmark" />
            </IconButton>
          </ListItem>
        )}
      </List>
      <p className="m-0 text-body-md text-on-surface-variant">{last}</p>
    </div>
  )
}

In a list that also selects, a press either selects the item or acts on it. See React Aria's Item actions.

Selection

Set selectionMode on the List to single or multiple to make its items selectable. Set the initial selection with defaultSelectedKeys, or control it with selectedKeys and onSelectionChange. The keys are the ids of the selected items. A selected item is highlighted, and its icons are filled.

Chime
Ripple
Sonar
Beacon
import { Icon, List, ListItem } from '@material-web/react'
import { Text } from 'react-aria-components'

const sounds = ['Chime', 'Ripple', 'Sonar', 'Beacon']

export default function SingleSelect() {
  return (
    <List
      aria-label="Notification sound"
      variant="segmented"
      className="w-90"
      selectionMode="single"
      defaultSelectedKeys={['Ripple']}
    >
      {sounds.map((sound) => (
        <ListItem key={sound} id={sound} textValue={sound}>
          {({ isSelected }) => (
            <>
              <Icon slot="leading" name={isSelected ? 'check' : 'music_note'} />
              <Text slot="label">{sound}</Text>
            </>
          )}
        </ListItem>
      ))}
    </List>
  )
}

In a single-select list, a click on the selected item deselects it. Set disallowEmptySelection to prevent that.

The list also takes selectionBehavior, disabledKeys, disabledBehavior and escapeKeyBehavior. See React Aria's Selection guide.

Non-interactive list

A list with no selection mode and no actions is non-interactive: its items show no hover or pressed state. The keyboard still moves the focus through them.

Size2.4 MB
ModifiedNov 6, 2026
OwnerAli Connors
import { List, ListItem } from '@material-web/react'
import { Text } from 'react-aria-components'

export default function NonInteractive() {
  return (
    <List aria-label="Details" className="w-90">
      <ListItem id="size" textValue="Size">
        <Text slot="label">Size</Text>
        <Text slot="trailing">2.4 MB</Text>
      </ListItem>
      <ListItem id="modified" textValue="Modified">
        <Text slot="label">Modified</Text>
        <Text slot="trailing">Nov 6, 2026</Text>
      </ListItem>
      <ListItem id="owner" textValue="Owner">
        <Text slot="label">Owner</Text>
        <Text slot="trailing">Ali Connors</Text>
      </ListItem>
    </List>
  )
}

Drag and drop

Call useDragAndDrop from @material-web/react and pass its dragAndDropHooks to the List. The hook takes the same options as React Aria's useDragAndDrop. To reorder a list, pass getItems and onReorder, as in the example below.

Each item then shows a drag handle at its start. The handle is how the keyboard drags an item, and a pointer drags the item itself.

Ali ConnorsBrunch this weekend?
Sandra AdamsOui oui
Trevor HansenBirthday gift
Britta HoltRecipe to try
import { List, ListItem, useDragAndDrop } from '@material-web/react'
import { Text, useListData } from 'react-aria-components'

export default function DragAndDrop() {
  const list = useListData({
    initialItems: [
      { id: 'ali', name: 'Ali Connors', message: 'Brunch this weekend?' },
      { id: 'sandra', name: 'Sandra Adams', message: 'Oui oui' },
      { id: 'trevor', name: 'Trevor Hansen', message: 'Birthday gift' },
      { id: 'britta', name: 'Britta Holt', message: 'Recipe to try' },
    ],
  })
  const { dragAndDropHooks } = useDragAndDrop({
    getItems: (keys) => [...keys].map((key) => ({ 'text/plain': list.getItem(key)?.name ?? '' })),
    onReorder(e) {
      if (e.target.dropPosition === 'before') list.moveBefore(e.target.key, e.keys)
      else if (e.target.dropPosition === 'after') list.moveAfter(e.target.key, e.keys)
    },
  })
  return (
    <List
      aria-label="Favorites"
      variant="segmented"
      className="w-90"
      items={list.items}
      dragAndDropHooks={dragAndDropHooks}
    >
      {(item) => (
        <ListItem textValue={item.name}>
          <Text slot="label">{item.name}</Text>
          <Text slot="description">{item.message}</Text>
        </ListItem>
      )}
    </List>
  )
}
  • While an item is dragged, a placeholder shows where it would be dropped. In a keyboard drag, the arrow keys move the placeholder.
  • Pass renderDragPreview to the hook to replace the preview that the pointer drags.
  • Pass renderDropIndicator to the hook to replace the placeholder.

Between lists

To move an item to another list, insert it in the onInsert of the list that receives it, and remove it in the onDragEnd of the list it leaves when the dropOperation is 'move'. See React Aria's drag and drop guide.

Book the tickets
Find a hotel
Pack the bags
Renew the passport
import { List, ListItem, useDragAndDrop } from '@material-web/react'
import { isTextDropItem, Text, useListData } from 'react-aria-components'

type Task = { id: string; name: string }

function TaskList({ label, tasks }: { label: string; tasks: Task[] }) {
  const list = useListData({ initialItems: tasks })
  const { dragAndDropHooks } = useDragAndDrop({
    getItems: (keys) => [...keys].map((key) => ({ task: JSON.stringify(list.getItem(key)) })),
    acceptedDragTypes: ['task'],
    getDropOperation: () => 'move',
    onReorder(e) {
      if (e.target.dropPosition === 'before') list.moveBefore(e.target.key, e.keys)
      else if (e.target.dropPosition === 'after') list.moveAfter(e.target.key, e.keys)
    },
    async onInsert(e) {
      const dropped = await Promise.all(
        e.items.filter(isTextDropItem).map(async (item) => JSON.parse(await item.getText('task'))),
      )
      if (e.target.dropPosition === 'before') list.insertBefore(e.target.key, ...dropped)
      else if (e.target.dropPosition === 'after') list.insertAfter(e.target.key, ...dropped)
    },
    async onRootDrop(e) {
      const dropped = await Promise.all(
        e.items.filter(isTextDropItem).map(async (item) => JSON.parse(await item.getText('task'))),
      )
      list.append(...dropped)
    },
    onDragEnd(e) {
      if (e.dropOperation === 'move' && !e.isInternal) list.remove(...e.keys)
    },
  })
  return (
    <List
      aria-label={label}
      variant="segmented"
      className="min-h-40 w-64"
      items={list.items}
      dragAndDropHooks={dragAndDropHooks}
      renderEmptyState={() => (
        <Text className="block p-space-200 text-on-surface-variant">Drop a task here</Text>
      )}
    >
      {(task) => <ListItem>{task.name}</ListItem>}
    </List>
  )
}

export default function BetweenLists() {
  return (
    <>
      <TaskList
        label="To do"
        tasks={[
          { id: 'tickets', name: 'Book the tickets' },
          { id: 'hotel', name: 'Find a hotel' },
          { id: 'pack', name: 'Pack the bags' },
        ]}
      />
      <TaskList label="Done" tasks={[{ id: 'passport', name: 'Renew the passport' }]} />
    </>
  )
}

React Aria's own hook

The useDragAndDrop hook from react-aria-components works with a List as well. With it, the drop indicator is a line where the item would be dropped, the dragged item stays in its place, and the other items do not slide.

Disabled

Set isDisabled on an item to disable it, or list its id in the disabledKeys of the list.

Ali ConnorsEnabled
Sandra AdamsDisabled and selected
Trevor HansenDisabled
import { Icon, List, ListItem } from '@material-web/react'
import { Text } from 'react-aria-components'

export default function Disabled() {
  return (
    <List
      aria-label="Contacts"
      variant="segmented"
      className="w-90"
      selectionMode="single"
      defaultSelectedKeys={['sandra']}
      disabledKeys={['sandra', 'trevor']}
    >
      <ListItem id="ali" textValue="Ali Connors">
        <Icon slot="leading" name="person" />
        <Text slot="label">Ali Connors</Text>
        <Text slot="description">Enabled</Text>
      </ListItem>
      <ListItem id="sandra" textValue="Sandra Adams">
        <Icon slot="leading" name="person" />
        <Text slot="label">Sandra Adams</Text>
        <Text slot="description">Disabled and selected</Text>
      </ListItem>
      <ListItem id="trevor" textValue="Trevor Hansen">
        <Icon slot="leading" name="person" />
        <Text slot="label">Trevor Hansen</Text>
        <Text slot="description">Disabled</Text>
      </ListItem>
    </List>
  )
}

Dividers

Set hasDivider to show a divider between the items. Limit dividers to uncontained lists.

Ali ConnorsBrunch this weekend?
Sandra AdamsOui oui
Trevor HansenBirthday gift
import { List, ListItem } from '@material-web/react'
import { Text } from 'react-aria-components'

export default function Dividers() {
  return (
    <List aria-label="Contacts" hasDivider className="w-90">
      <ListItem id="ali" textValue="Ali Connors">
        <Text slot="label">Ali Connors</Text>
        <Text slot="description">Brunch this weekend?</Text>
      </ListItem>
      <ListItem id="sandra" textValue="Sandra Adams">
        <Text slot="label">Sandra Adams</Text>
        <Text slot="description">Oui oui</Text>
      </ListItem>
      <ListItem id="trevor" textValue="Trevor Hansen">
        <Text slot="label">Trevor Hansen</Text>
        <Text slot="description">Birthday gift</Text>
      </ListItem>
    </List>
  )
}

Orientation

Set orientation="horizontal" to lay the items out in a row. The up and down arrow keys still move between them.

Start
Center
End
import { Icon, List, ListItem } from '@material-web/react'
import { Text } from 'react-aria-components'

export default function Horizontal() {
  return (
    <List
      aria-label="Text alignment"
      orientation="horizontal"
      variant="segmented"
      selectionMode="single"
      defaultSelectedKeys={['start']}
    >
      <ListItem id="start" textValue="Start">
        <Icon slot="leading" name="format_align_left" />
        <Text slot="label">Start</Text>
      </ListItem>
      <ListItem id="center" textValue="Center">
        <Icon slot="leading" name="format_align_center" />
        <Text slot="label">Center</Text>
      </ListItem>
      <ListItem id="end" textValue="End">
        <Icon slot="leading" name="format_align_right" />
        <Text slot="label">End</Text>
      </ListItem>
    </List>
  )
}

Align list items

The parts of an item are centered vertically. In an item with three lines of text, or 88dp tall or more, they are aligned to its top. In this example, the avatar of the second item is at its top, as its supporting text wraps onto a third line.

Ali ConnorsBrunch this weekend?15 min
Sandra AdamsWish I could come, but I am out of town this weekend and the one after1 h
import { List, ListItem } from '@material-web/react'
import type { ReactNode } from 'react'
import { Text } from 'react-aria-components'

function Avatar({ children }: { children: ReactNode }) {
  return (
    <span
      slot="leading"
      aria-hidden
      className="grid size-10 place-items-center rounded-full bg-primary-container text-title-md text-on-primary-container"
    >
      {children}
    </span>
  )
}

export default function Align() {
  return (
    <List aria-label="Recent messages" variant="segmented" className="w-90">
      <ListItem id="ali" textValue="Ali Connors">
        <Avatar>A</Avatar>
        <Text slot="label">Ali Connors</Text>
        <Text slot="description">Brunch this weekend?</Text>
        <Text slot="trailing">15 min</Text>
      </ListItem>
      <ListItem id="sandra" textValue="Sandra Adams">
        <Avatar>S</Avatar>
        <Text slot="label">Sandra Adams</Text>
        <Text slot="description">
          Wish I could come, but I am out of town this weekend and the one after
        </Text>
        <Text slot="trailing">1 h</Text>
      </ListItem>
    </List>
  )
}

An item is at least 56, 72 or 88dp tall, for one, two or three lines of text. An overline or supporting text adds a line to the label, and so does a label or supporting text that wraps. An item also grows with a taller leading part.

In a list that is given a height and scrolls, the items keep their heights.

Gutterless list

An item has 16dp of padding at its sides. In a container that has its own padding, replace it with a padding class on each item, such as px-0.

Details
Size2.4 MB
ModifiedNov 6, 2026
OwnerAli Connors
import { Card, List, ListItem } from '@material-web/react'
import { Text } from 'react-aria-components'

const details = [
  { id: 'size', label: 'Size', value: '2.4 MB' },
  { id: 'modified', label: 'Modified', value: 'Nov 6, 2026' },
  { id: 'owner', label: 'Owner', value: 'Ali Connors' },
]

export default function Gutterless() {
  return (
    <Card variant="filled" className="w-80 px-space-300 py-space-200">
      <div className="text-title-md">Details</div>
      <List aria-label="File details" items={details}>
        {(detail) => (
          <ListItem textValue={detail.label} className="bg-transparent px-0">
            <Text slot="label">{detail.label}</Text>
            <Text slot="trailing">{detail.value}</Text>
          </ListItem>
        )}
      </List>
    </Card>
  )
}

Give a ListItem an href to make it a link, such as <ListItem href="/inbox">. To send these links through a client-side router, wrap the app in RouterProvider from react-aria-components. See Routing.

OverviewWhat lists are for
SpecsMeasurements and tokens
GuidelinesUsage and behavior
import { Icon, List, ListItem } from '@material-web/react'
import { Text } from 'react-aria-components'

const pages = [
  { id: 'overview', label: 'Overview', description: 'What lists are for' },
  { id: 'specs', label: 'Specs', description: 'Measurements and tokens' },
  { id: 'guidelines', label: 'Guidelines', description: 'Usage and behavior' },
]

export default function Links() {
  return (
    <List aria-label="Material Design pages on lists" variant="segmented" className="w-90">
      {pages.map((page) => (
        <ListItem
          key={page.id}
          id={page.id}
          textValue={page.label}
          href={`https://m3.material.io/components/lists/${page.id}`}
          target="_blank"
          rel="noreferrer"
        >
          <Icon slot="leading" name="article" />
          <Text slot="label">{page.label}</Text>
          <Text slot="description">{page.description}</Text>
          <Icon slot="trailing" name="open_in_new" />
        </ListItem>
      ))}
    </List>
  )
}

In a list with selection, how a press on a link behaves depends on the selectionBehavior. See React Aria's Links.

List controls

Checkbox

Put a Checkbox in the selection, leading or trailing slot of an item to show and toggle the item's selection. It needs no label. In a list with no selection mode, the checkbox is disabled unless you set isDisabled={false} on it.

Ali ConnorsBrunch this weekend?
Sandra AdamsOui oui
Trevor HansenBirthday gift
import { Checkbox, List, ListItem } from '@material-web/react'
import { useState } from 'react'
import { Text, type Selection } from 'react-aria-components'

const contacts = [
  { id: 'ali', name: 'Ali Connors', message: 'Brunch this weekend?' },
  { id: 'sandra', name: 'Sandra Adams', message: 'Oui oui' },
  { id: 'trevor', name: 'Trevor Hansen', message: 'Birthday gift' },
]

export default function MultiSelect() {
  const [selected, setSelected] = useState<Selection>(new Set(['ali']))
  return (
    <List
      aria-label="Contacts to share with"
      variant="segmented"
      className="w-90"
      selectionMode="multiple"
      selectedKeys={selected}
      onSelectionChange={setSelected}
    >
      {contacts.map((contact) => (
        <ListItem key={contact.id} id={contact.id} textValue={contact.name}>
          <Checkbox slot="selection" />
          <Text slot="label">{contact.name}</Text>
          <Text slot="description">{contact.message}</Text>
        </ListItem>
      ))}
    </List>
  )
}

Switch

A Switch or a Radio in a slot is not tied to the item's selection: give it its own name and state. A Radio still needs a RadioGroup around it.

Wi-FiHome network
BluetoothAvailable devices
import { Icon, List, ListItem, Switch } from '@material-web/react'
import { Text } from 'react-aria-components'

export default function Controls() {
  return (
    <List aria-label="Settings" variant="segmented" className="w-90">
      <ListItem id="wifi" textValue="Wi-Fi">
        <Icon slot="leading" name="wifi" />
        <Text slot="label">Wi-Fi</Text>
        <Text slot="description">Home network</Text>
        <Switch slot="trailing" aria-label="Wi-Fi" defaultSelected />
      </ListItem>
      <ListItem id="bluetooth" textValue="Bluetooth">
        <Icon slot="leading" name="bluetooth" />
        <Text slot="label">Bluetooth</Text>
        <Text slot="description">Available devices</Text>
        <Switch slot="trailing" aria-label="Bluetooth" />
      </ListItem>
    </List>
  )
}

Customization

Pass classes in className to restyle a List or a ListItem. A class of yours replaces the component's own class for the same property. See Styling for the classes, the states and the theme.

  • Color: An item has the surface color. On a container of another color, give it bg-transparent.
  • States: Style a state of an item with its variant, such as hover:, pressed: or selected:. See States.
  • Every list: To restyle all the lists at once, change the theme.

Density

Add density-1, density-2 or density-3 to a list, or to an element around it. Each density step takes 2dp off the top and bottom of an item, down to a height of 48dp.

Default
Ali ConnorsBrunch?
density-1
Ali ConnorsBrunch?
density-2
Ali ConnorsBrunch?
density-3
Ali ConnorsBrunch?
import { List, ListItem, twMerge } from '@material-web/react'
import { Text } from 'react-aria-components'

const steps = ['', 'density-1', 'density-2', 'density-3']

export default function Density() {
  return (
    <>
      {steps.map((density) => (
        <List
          key={density}
          aria-label={`Contacts, ${density || 'default density'}`}
          variant="segmented"
          className={twMerge('w-40', density)}
        >
          <ListItem id="density">{density || 'Default'}</ListItem>
          <ListItem id="ali" textValue="Ali Connors">
            <Text slot="label">Ali Connors</Text>
            <Text slot="description">Brunch?</Text>
          </ListItem>
        </List>
      ))}
    </>
  )
}

State

The className, style and children of a ListItem can be functions of its state: isHovered, isPressed, isFocused, isFocusVisible, isFocusVisibleWithin, isSelected, isDisabled, selectionMode, selectionBehavior, allowsDragging, isDragging, isDropTarget, id and state. A render function is given the item's ripple along with the children, so render the children it receives. See Children as a function.

To style by state in your own CSS, target the data attributes:

  • The list sets data-focused, data-focus-visible, data-empty, data-layout and data-orientation.
  • Each item sets data-hovered, data-pressed, data-focused, data-focus-visible, data-focus-visible-within, data-selected, data-disabled, data-allows-dragging, data-dragging and data-drop-target, and data-selection-mode in a list with selection.