<script>
import theme from "#build/b24ui/prose/kbd";
</script>

<script setup>
import { computed } from "vue";
import { useAppConfig } from "#imports";
import { useComponentProps } from "../../composables/useComponentProps";
import { tv } from "../../utils/tv";
import B24Kbd from "../Kbd.vue";
const _props = defineProps({
  value: { type: String, required: false },
  class: { type: null, required: false },
  b24ui: { type: Object, required: false }
});
defineSlots();
const props = useComponentProps("prose.kbd", _props);
const appConfig = useAppConfig();
const b24ui = computed(() => tv({ extend: theme, ...appConfig.b24ui?.prose?.kbd || {} }));
</script>

<template>
  <B24Kbd :value="props.value" :class="b24ui({ class: [props.b24ui?.base, props.class] })">
    <slot />
  </B24Kbd>
</template>
