This repository has been archived on 2025-12-04. You can view files and clone it. You cannot open issues or pull requests or push a commit.
2025-10-23 08:26:38 +02:00
|
|
|
<script setup lang="ts">
|
2025-10-20 08:57:51 +02:00
|
|
|
import type { HTMLAttributes } from "vue"
|
|
|
|
|
import { cn } from "@/lib/utils"
|
|
|
|
|
|
|
|
|
|
const props = defineProps<{
|
|
|
|
|
class?: HTMLAttributes["class"]
|
|
|
|
|
}>()
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<template>
|
|
|
|
|
<kbd
|
|
|
|
|
:class="cn(
|
|
|
|
|
'bg-muted text-muted-foreground pointer-events-none inline-flex h-5 w-fit min-w-5 items-center justify-center gap-1 rounded-sm px-1 font-sans text-xs font-medium select-none',
|
2025-10-23 08:26:38 +02:00
|
|
|
'[&_svg:not([class*=\'size-\'])]:size-3',
|
2025-10-20 08:57:51 +02:00
|
|
|
'[[data-slot=tooltip-content]_&]:bg-background/20 [[data-slot=tooltip-content]_&]:text-background dark:[[data-slot=tooltip-content]_&]:bg-background/10',
|
|
|
|
|
props.class,
|
|
|
|
|
)"
|
|
|
|
|
>
|
|
|
|
|
<slot />
|
|
|
|
|
</kbd>
|
|
|
|
|
</template>
|