Components
Kbd
Keyboard key indicator for displaying keyboard shortcuts.
Usage
Best practices
Wrap multi-key chords in
KbdGroupand setsizeon the group - children inherit it via context, so you size the combo once.It renders a semantic
<kbd>; reserve it for keyboard keys/shortcuts, not as a generic small-label chip (that'sBadge).
Props
Kbd
KbdGroup
Also exports
- const
KBD_SIZE_CLASSES - type
KbdGroupProps - type
KbdProps - const
kbdVariants
Composition
Used by