Docs
← Back to site

Keyboard Shortcut Block

1 min readUpdated October 29, 2026

Renders a keyboard shortcut as styled, raised keycap badges, like Ctrl + C, instead of writing it as plain text.

Keyboard Shortcut blocks showing Cmd+K and Cmd+Shift+N with a label.

Adding the block#

Add a Keyboard Shortcut block from the block inserter, then fill in:

  • Keys: comma-separated, for example Cmd, Shift, P.
  • Separator: choose + (combine) for keys pressed together, or → (sequence) for keys pressed one after another.
  • Label (optional): text shown before the keys, for example “Open command palette:”.

Example:

ShortcutCtrl + C

Example#

Keys Cmd, Shift, P with the + separator renders as:

Cmd + Shift + P

The same keys with the → separator instead renders as:

Cmd → Shift → P

Use + for a combination pressed at once, and → for a sequence of separate key presses (common for editor commands or multi-step shortcuts).

Appearance#

Each key renders as a raised keycap using your theme’s card background and border colors (see Theming with CSS Variables), so it looks like a physical key regardless of your site’s color scheme.

Was this helpful?

This website uses cookies to enhance your browsing experience and ensure the site functions properly. By continuing to use this site, you acknowledge and accept our use of cookies.

Accept All Accept Required Only