Skip to main content

KeyboardShortcut

Use the KeyboardShortcut to display one or more keys that represent a keyboard shortcut for a specific action.

When to use

  • To display keyboard shortcuts next to the actions they trigger, such as in menu items or tooltips.

When not to use

Variants

KeyboardShortcut components come in two emphasis levels: default and minimal.

Examples of KeyboardShortcut components with different emphasis property values. Examples of KeyboardShortcut components with different emphasis property values.

Default

  • Use the default variant to ensure the keyboard shortcut you're describing stands out and is quickly identifiable next to other content.

Minimal

  • Use the minimal variant if the keyboard shortcut is extra information that shouldn't stand out, such as a KeyboardShortcut as a suffix of a Menu item.
Still have questions?
Find answers in the Dynatrace Community