Components
MultiSelect
Multi-select with space-to-toggle checkboxes and Enter-to-confirm. Fully generic.
A multi-select component with space-to-toggle checkboxes, set-based internal state, and Enter-to-confirm. Fully generic over the value type.
Installation
Usage
Examples
With default selected
With disabled items
Focus management
Props
| Prop | Type | Default | Description |
|---|---|---|---|
items | MultiSelectItem<T>[] | — | List of { label, value, disabled? } options (required) |
onSubmit | (selected: MultiSelectItem<T>[]) => void | — | Called on Enter with all selected items (required) |
defaultSelected | T[] | [] | Pre-selected values |
focus | boolean | true | Whether this component captures keyboard input |
theme | InkUITheme | darkTheme | Color theme |