Demo
- One Kbd per key; a KbdGroup holds the keys of one shortcut.
- Modifier symbols on a Mac (⌘ ⇧ ⌥ ⌃), words elsewhere (Ctrl).
⌘⇧⌥⌃Ctrl+B
Group
- Inside a sentence the keys sit on the text line and keep the sentence's colour around them.
Press CtrlK to search your care plan.
Tooltip
- Shortcuts belong in a tooltip, never only there: the action keeps its visible label.
- Inside a dark tooltip the key keeps its 4px corners.
Input group
- The ⌘K hint is a real shortcut: Cmd or Ctrl and K focus the field from anywhere on the page.
- The hint is hidden from screen readers; the field says its shortcut with aria-keyshortcuts.