Shortcut
Shortcut is the convenience alias for Kbd with a compact default size. It is useful when command palettes, menus, and action rails need keyboard hints without repeating the full Kbd configuration.
Basic usage
Live Editor
function PaletteHint() { return ( <ThemeProvider> <Shortcut> <span>Cmd</span> <span>K</span> </Shortcut> </ThemeProvider> ); }
Result
Loading...
With explicit keys
<Shortcut keys={['Shift', '/']} tone="info" />
Notes
Shortcutshares the same prop surface asKbd.- Prefer
Shortcutwhen the UI calls for compact inline hints; preferKbdwhen you want more direct control over size or styling.