Components
Select
Keyboard-navigable single-select menu with generic value types and disabled items.
A keyboard-navigable single-select menu. Generic over the option value type — works with strings, numbers, or any object.
Installation
Usage
Examples
String values
With disabled items
Object values
Props
| Prop | Type | Default | Description |
|---|---|---|---|
items | SelectItem<T>[] | — | List of { label, value, disabled? } options (required) |
onSelect | (item: SelectItem<T>) => void | — | Called when user confirms a selection (required) |
focus | boolean | true | Whether this select captures keyboard input |
theme | InkUITheme | darkTheme | Color theme |