<script setup lang="ts">
import type { HTMLAttributes } from 'vue';
import { cn } from '@/lib/utils';

const props = defineProps<{ class?: HTMLAttributes['class'] }>();
</script>

<template>
  <kbd
    data-slot="kbd"
    :class="
      cn(
        'pointer-events-none inline-flex h-5 select-none items-center gap-1 rounded border bg-background-surface-muted px-1.5 font-mono text-[10px] font-medium text-muted-foreground',
        props.class,
      )
    "
  >
    <slot />
  </kbd>
</template>
