A <kbd>
in your content.
Built on top of the Kbd component, the Shortcut component will help you display a keyboard shortcut in your content.
Example:
:shortcut{value="K"}
You can also specify the meta
key to automatically display either ⌘
or Ctrl
based on the platform.
Example:
:shortcut{value="meta"} :shortcut{value="K"}
Prop | Type | Required | Description |
---|---|---|---|
value | string | Yes | The keyboard shortcut to display |
{
wrapper: '!my-0 align-text-top'
}