Command
Find an action by name or keyword and run it from the keyboard.
alpina-ui/interactive/commandOpen collection · All drafts
Usage notes
Label each command by its action. Moving the pointer changes the active result while keyboard focus stays in the search field.
When to use
Search available commands when an experienced user wants to go straight to a known task.
When to avoid
Keep common tasks visible in the ordinary interface so discovery never depends on remembering a shortcut.
Accessibility
Label the search field and announce the results. Escape should return focus to the invoking control.
| Key | Action |
|---|---|
| Enter / Space | Open the command dialog from its trigger. |
| Type | Filter commands in the search field. |
| ↑ / ↓ | Move between available results. |
| Enter | Run the active command. |
| Escape | Close the dialog and restore focus. |
Content
Start each result with the action and name its object. Keep synonyms in search metadata so labels stay short.
- Use
- Create a new invoice
- Avoid
- Invoices module 03
Copy in four languages
- German
- Rechnung erstellen18 characters
- French
- Créer une facture17 characters
- Italian
- Crea fattura12 characters
- Romansh
- Crear in quint14 characters
npx --no-install alpina add command