docs(shortcuts): invalid dropdown items (#778)

This commit is contained in:
Lnunu
2023-10-04 16:32:57 +08:00
committed by Benjamin Canac
parent 498db5ca21
commit 49a753f80f

View File

@@ -7,7 +7,7 @@ description: 'Learn how to display and define keyboard shortcuts in your app.'
Some components like [Dropdown](/elements/dropdown), [Command Palette](/navigation/command-palette) and [Tooltip](/overlays/tooltip) support the display of keyboard shortcuts.
```vue
<UDropdown :items="[{ label: 'Edit', shortcuts: ['E'] }]" />
<UDropdown :items="[[{ label: 'Edit', shortcuts: ['E'] }]]" />
```
Shortcuts are displayed and styled through the [Kbd](/elements/kbd) component.