Function: ListBox()
ListBox<
T>(__namedParameters):Element
Defined in: components/ListBox/ListBox.tsx:74
A standalone semantic list box built on React Aria's ListBox — a
selectable list of options.
Per ADR-007 the CONTAINER is Entity = Collection (an informational
surface) and each ListBoxItem is Entity = Selection (input chrome). Set
selectionMode="single|multiple". Use ListBoxItem for each option.
Type Parameters
| Type Parameter | Default type |
|---|---|
T extends object | object |
Parameters
| Parameter | Type |
|---|---|
__namedParameters | ListBoxProps<T> |
Returns
Element
Example
<ListBox aria-label="Frameworks" selectionMode="multiple">
<ListBoxItem id="react">React</ListBoxItem>
<ListBoxItem id="vue">Vue</ListBoxItem>
</ListBox>