Shortcut grid

A shortcut grid component displays keyboard shortcuts with their description in a grid.

Examples

Basic shortcut grid

A basic shortcut grid can be used to display shortcuts available to the user together with their description.

You can customize displayed shortcuts using shortcuts props. For mouse actions with given shortcuts, there are separate props to be enabled. You can customize showing symbols for control keys using showSymbols. The component also accepts all properties of the grid layout.

Cmd + Shift + T
Open new tab
Opt + N
Open new page
^ Ctrl + Drag
Move object

Single shortcut

Shortcut component can be also used outside of the grid.

Appearance of the component can be customized using the className property.

Cmd + Shift + ClickShortcut description

Props

ShortcutGrid

extends GridProps
*required
NameTypeDefaultDescription
shortcutsrequiredShortcutProps[]Array of shortcuts to be displayed in the grid
gridItemPropsGridItemPropsShortcut GridItem props
ouiaIdstring | number'ShortcutGrid'Custom OUIA ID

Shortcut

*required
NameTypeDefaultDescription
classNamestringShortcut className
clickbooleanShow click in the shortcut
descriptionReact.ReactNodenullShortcut description
dragbooleanShow drag in the shortcut
dragAndDropbooleanShow drag and drop in the shortcut
hoverbooleanShow hover in the shortcut
keysstring[][]Array of shortcut keys
ouiaIdstring | number'Shortcut'Custom OUIA ID
rightClickbooleanShow right click in the shortcut
showSymbolsbooleantrueIndicates whether symbols should be displayed for certain keys