docs: minor improvements

This commit is contained in:
Benjamin Canac
2023-05-14 17:06:46 +02:00
parent bb4cd0b1b9
commit dcc0a6b3a9
6 changed files with 25 additions and 12 deletions

View File

@@ -25,9 +25,7 @@ Shortcuts are displayed and styled through the [Kbd](/elements/kbd) component.
You will have a preview of how shortcuts are rendered in each component page.
::
## Composables
### `defineShortcuts`
## `defineShortcuts`
This module provides a `defineShortcuts` composable that allows you to define keyboard shortcuts in your app really easily.
@@ -50,7 +48,7 @@ defineShortcuts({
</script>
```
### `useShortcuts`
## `useShortcuts`
To display shortcuts in your app according to the user's OS, you can use the `useShortcuts` composable.