Data Display

List

A list displays a collection of items and allows a user to select one or more of them.

A list displays a collection of items and allows a user to select one or more of them.

One
Two
Three
Four
Five

Separators#

One
Two
Three
Four
Five

Sections#

Introduction
One
Two
Three
Summary
Four
Five

Single select#

One
Two
Three
Four
Five

Multiple select#

One
Two
Three
Four
Five

Preselected#

One
Two
Three
Four
Five

Component props#

List#

NameTypeDescription
selectionModeSelectionMode"none" | "single" | "multiple"
selectedKeysstring[]Controlled selected keys
defaultSelectedKeysstring[]Default selected keys
onSelectionChange(keys: Selection) => voidCalled when selection changes. Keys are always emitted as strings, so numeric ids match string selectedKeys

A standalone list (one that is not inside a Select or ComboBox) uses a roving tabindex: the listbox itself is the single tab stop, ArrowUp/ArrowDown/Home/End move focus between options, and Enter/Space selects the focused option.

ListItem#

NameTypeDescription
idstringUnique item identifier
textValuestringText value for accessibility
isDisabledbooleanDisables the item