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

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

<template>
  <B24Badge color="air-primary" :class="b24ui({ class: [props.b24ui?.base, props.class] })">
    <slot mdc-unwrap="p" />
  </B24Badge>
</template>
