CommandChooser
Component Stability: stable
Default NEUTRAL rendering of the choose strategy (ADR 017 §3.4c): a list at the caret. The keyboard (arrows, Enter, digits 1-9, Escape) is handled by the engine while the chooser is pending; this component renders the state and takes the mouse. The editor keeps the focus, so options are not tabbable: the highlighted one is announced by the live region.
Related guide: Commands and keymap →
Usage
Svelte
<script>
import { CommandChooser } from '@aionbuilders/nabu/ui';
</script>
<CommandChooser {engine} />Props
| Prop | Type | Default | Description |
|---|---|---|---|
engine | Nabu | n/a | The editor this component works on (a |
labeloptional | string | 'Choose an action' | n/a |
Source: src/lib/ui/CommandChooser.svelte