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

@@ -0,0 +1,18 @@
<template>
<UKbd class="!my-0 align-text-top">
{{ shortcut }}
</UKbd>
</template>
<script setup lang="ts">
const props = defineProps({
value: {
type: String,
required: true
}
})
const { metaSymbol } = useShortcuts()
const shortcut = computed(() => props.value === 'meta' ? metaSymbol.value : props.value)
</script>