docs: use ::tip everywhere

This commit is contained in:
Benjamin Canac
2024-07-11 17:15:12 +02:00
parent b9319c0fbc
commit 57e62f36c4
3 changed files with 8 additions and 8 deletions

View File

@@ -20,7 +20,7 @@ Shortcuts are displayed and styled through the [Kbd](/components/kbd) component.
</template>
```
::callout{icon="i-heroicons-light-bulb"}
::tip
You will have a preview of how shortcuts are rendered in each component page.
::
@@ -63,7 +63,7 @@ Examples of keys:
- `g-d`: will trigger by hitting `g` then `d` with a maximum delay of 800ms by default
- `arrowleft`: will trigger by hitting `←` (also: `arrowright`, `arrowup`, `arrowdown`)
::callout{icon="i-heroicons-light-bulb"}
::tip
For a complete list of available shortcut keys, refer to the [`KeyboardEvent`](https://developer.mozilla.org/en-US/docs/Web/API/UI_Events/Keyboard_event_key_values) API docs. Note the `KeyboardEvent.key` has to be written in lowercase.
::