Shortcut
Renders keyboard shortcut combinations as styled kbd elements with platform-aware modifier keys.
Examples
EscapeEnterTabCtrl+S
Ctrl+KCtrl+Shift+PAlt+F4
- Open command paletteCtrl+K
- Save documentCtrl+S
- Find in fileCtrl+F
- Close tabCtrl+W
When to use Shortcut
Use when
You need the documented Shortcut interaction or presentation in a product workflow.
Avoid when
A native HTML element already provides the Shortcut behavior you need.
Accessibility
Keep the Shortcut labeled and use its documented keyboard interaction. The component preserves visible focus and communicates state without relying on color alone.