Components
KeyHint
Keyboard shortcut hints row. Used internally by Select, MultiSelect, and Dialog.
Renders a row of keyboard shortcut hints. Used by other InkUI components internally and exported for use in your own interactive components.
Installation
Usage
Output: [↑↓] Navigate [Enter] Select [Esc] Cancel
Examples
Select hints
Multi-select hints
Props
| Prop | Type | Default | Description |
|---|---|---|---|
keys | KeyHintItem[] | — | Array of { key, label } hints (required) |
theme | InkUITheme | darkTheme | Color theme |
KeyHintItem
| Field | Type | Description |
|---|---|---|
key | string | Key name shown in brackets, e.g. "Enter", "↑↓" |
label | string | Action description, e.g. "Select", "Navigate" |