mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-14 20:19:34 +01:00
feat(Kbd): special keys for macOS and other systems (#2494)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
This commit is contained in:
@@ -31,7 +31,7 @@ props:
|
||||
---
|
||||
::
|
||||
|
||||
You can pass special keys to the `value` prop that goes through the [`useKbd`](https://github.com/nuxt/ui/blob/v3/src/runtime/composables/useKbd.ts) composable. For example, the `meta` key displays as `⌘` on macOS and `Ctrl` on other platforms.
|
||||
You can pass special keys to the `value` prop that goes through the [`useKbd`](https://github.com/nuxt/ui/blob/v3/src/runtime/composables/useKbd.ts) composable. For example, the `meta` key displays as `⌘` on macOS and `⊞` on other platforms.
|
||||
|
||||
::component-code
|
||||
---
|
||||
@@ -40,6 +40,7 @@ props:
|
||||
items:
|
||||
value:
|
||||
- meta
|
||||
- win
|
||||
- command
|
||||
- shift
|
||||
- ctrl
|
||||
|
||||
Reference in New Issue
Block a user