We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e69e8e commit 95ab001Copy full SHA for 95ab001
components/KeyboardKey.vue
@@ -0,0 +1,9 @@
1
+<script lang="ts" setup>
2
+defineProps<{ text?: string }>()
3
+</script>
4
+
5
+<template>
6
+ <small>
7
+ <kbd class="monospace border border-layer-text-muted rounded px-1 border-b-2"><slot name="text">{{ text }}</slot></kbd>
8
+ </small>
9
+</template>
components/KeyboardKeyCombination.vue
@@ -0,0 +1,15 @@
+import KeyboardKey from './KeyboardKey.vue'
+defineProps<{ keys?: Array<{ text: string }> }>()
+ <kbd class="inline-flex gap-0.5">
+ <slot>
10
+ <template v-if="keys">
11
+ <KeyboardKey v-for="key in keys" :key="key.text" :text="key.text" />
12
+ </template>
13
+ </slot>
14
+ </kbd>
15
0 commit comments