Typography
Kbd
Displays keyboard keys and grouped shortcuts with fixed native kbd anatomy.
Usage
Anatomy
The parts and how they nest, taken from the preview above.
Examples
Standalone keys
Single key caps represent individual keystrokes, modifier keys, and navigation controls.
Grouped shortcuts
Compose related key sequences with KbdGroup to present multi-key combinations.
Inline text composition
Keys and shortcut groups sit inline with instructional body text to explain keyboard navigation.
Action composition
Pair shortcut indicators with action triggers to display available hotkeys directly on controls.
Recommendations
| Guidance | Practice |
|---|---|
| Do | Show shortcuts that actually work and match the user's platform when the application supports it. |
Usage boundaries
| Guidance | Boundary |
|---|---|
| Scope | Kbd describes keys. Shortcut registration, conflicts, and discoverability belong to the application. |
API reference
Public props from @mizen-labs/ui. Use exported prop types for the complete TypeScript contract.
| Prop | Type | Default | Description |
|---|---|---|---|
| | — | Single-key keyboard affordance with a fixed native kbd semantic host. |
| | — | Grouped-shortcut container for key combinations with a fixed native kbd semantic host. |