Kbd
Display readable shortcuts with native keyboard-input markup.
alpina-ui/ui/kbdTo print on Windows, press Ctrl + P.
Usage notes
Use short key names for most shortcuts. Longer translated names can wrap inside a narrow column without clipping.
When to use
Show the actual keyboard shortcut for an action already available on screen.
When to avoid
A keycap used as the only way to start a task leaves touch and switch users without an action.
Accessibility
Keep a normal focusable control alongside the shortcut and adapt modifier names to the user's platform.
| Key | Action |
|---|---|
| — | Read in document order. The component has no keyboard command of its own. |
Content
Keep key names short and literal. Translate the description of the action separately from the key sequence.
- Use
- Search documents · Ctrl + K
- Avoid
- Press the special key
Copy in four languages
- German
- Dokumente suchen16 characters
- French
- Rechercher des documents24 characters
- Italian
- Cerca documenti15 characters
- Romansh
- Tschertgar documents20 characters
npx --no-install alpina add kbd