Skip to content

Commit

Permalink
docs(shortcuts): invalid dropdown items (nuxt#778)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lnunu committed Oct 4, 2023
1 parent c3e51b6 commit 76b1e89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/content/1.getting-started/4.shortcuts.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 76b1e89

Please sign in to comment.