Picker
import { Picker } from '@dxos/react-ui-list';npm install @dxos/react-ui-listA picker is a filter input over a list of choices, like a command palette. The arrow keys move the highlight from the input, and Enter commits the highlighted item, so the user never leaves the keyboard. You filter the items from the input’s value.
| Part | What it is |
|---|---|
Picker.Root |
The root, which tracks the highlight. resetSelectionOnChange moves the highlight to the first item as the results change |
Picker.Input |
The filter input. value and onValueChange hold the query |
Picker.Item |
An item with a value. onSelect runs when the user commits it |