ComponentsKeyboard shortcut

Keyboard shortcut

Show the keys someone can use to perform an action.

Example
Open search/

Setup

Download the shared Inlay assets once. Then choose HTML, React, or Vue and copy the example above.

Command palette shortcut

Show the keyboard shortcut for library search on macOS and Windows or Linux.

Example
Search on macOS
⌘K
Search on Windows or Linux
Ctrl+K

Key combinations

Group keys that are pressed together.

Example
Move focus backward ShiftTab

Search hint

Place a shortcut hint next to the field it targets.

Example
/

Button hint

Add a keycap to a button so the keyboard action is visible.

Example

Tooltip hint

Show the keyboard hint on hover or focus to keep the action compact.

Example

Right-to-left shortcut

Let the label follow the page direction while keeping the keys in chord order.

Example
الانتقال إلى الحقل السابق ShiftTab

Shortcut reference panel

Focus the reference panel and press Alt + Shift + K to show or hide the list. You can also open it with the button.

Example

Workspace shortcuts

Usage

SemanticsUse kbd for keys and combinations. A displayed key does not register a shortcut.
PlatformShow shortcuts appropriate to the platform when your application supports different bindings.
BindingsPublish the actual binding with aria-keyshortcuts on the action. Register a separate key listener, scope it to the relevant view, and ignore editable controls and composition events. Keep the action usable without a shortcut.