Skip to content
Shortcut hint, light
Light
Shortcut hint, dark
Dark

Every state

  • Shortcut hint, default, light
    Shortcut hint, default, dark

    default

  • Shortcut hint, mac, light
    Shortcut hint, mac, dark

    mac

  • Shortcut hint, other, light
    Shortcut hint, other, dark

    other

  • Shortcut hint, combos-mac, light
    Shortcut hint, combos-mac, dark

    combos-mac

  • Shortcut hint, combos-other, light
    Shortcut hint, combos-other, dark

    combos-other

  • Shortcut hint, in-field, light
    Shortcut hint, in-field, dark

    in-field

Props

PropTypeDefaultWhat it does
keysstring[]["mod", "K"]The keys, in order: modifiers ("mod", "ctrl", "alt", "shift"), named keys ("enter", "escape", "backspace", "delete", "tab", "space", "up", "down", "left", "right") or a character ("K", "/", "?"). "mod" is ⌘ on a Mac and Ctrl elsewhere.
labelstring | null"Search"What the shortcut does, before the keys ("Search"). Null or left out: keys only.
platformKbdPlatform | null–Force a platform's spelling. Left out: the visitor's own, read after hydration (neutral until then).
joinWordstring" "Said between the key words for screen readers when keys are pressed together: "Command plus K" with " plus ".
classNamestring–Extra classes on the outer element.

More keyboard keys

All 4

Preview

Open the page
In UI Pro: get it, €199 once

With every block and theme. 400+ buyers since 2020. Plans