Components
BaseHotkeyLegend
A row of keyboard shortcuts with what they do, for the footer of a palette or a search dialog.
components/ui/BaseHotkeyLegend.vue
View in the demo
Example
to move
to open
Escape
to closeAppCommandPalette and the docs search use it. Keys use the v-hotkey syntax, so Mac shows ⌘ and Windows shows Ctrl. Show a legend only where the shortcuts are part of the interaction; elsewhere put the shortcut in the control's BaseTooltip.
API
Props
Name | Type | Default | Description |
|---|---|---|---|
items | BaseHotkeyLegendItem[] | [] | The shortcuts: keys in v-hotkey syntax and the label of what they do. |