Kbd
Display keyboard shortcuts or key commands
Use the Kbd
component to display keyboard shortcuts or key commands in a visually distinct way. Use them to display keyboard shortcuts in documentation or tooltips, highlight key commands for faster navigation in your apps, or to assist your users in learning quick actions for common tasks.
⌘⇧K
To specify keyboard icons, pass an array of keywords for the keys
prop. You can also create the component without any keys, or without any text:
K
⌘
For a full list of available keywords, see the API reference below.
API
Prop | Purpose |
---|---|
keys | Sets keyboard icons. |
className | Pass additional CSS classes for the element. |
Request improvement for this page