

Every state


default


mac


other


combos-mac


combos-other


in-field
Props
| Prop | Type | Default | What it does |
|---|---|---|---|
| keys | string[] | ["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. |
| label | string | null | "Search" | What the shortcut does, before the keys ("Search"). Null or left out: keys only. |
| platform | KbdPlatform | null | – | Force a platform's spelling. Left out: the visitor's own, read after hydration (neutral until then). |
| joinWord | string | " " | Said between the key words for screen readers when keys are pressed together: "Command plus K" with " plus ". |
| className | string | – | Extra classes on the outer element. |


