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

<script setup>
import { computed } from "vue";
import { useAppConfig } from "#imports";
import { tv } from "../../utils/tv";
import B24Link from "../Link.vue";
const props = defineProps({
  href: { type: String, required: false },
  class: { type: null, required: false },
  target: { type: null, required: false },
  b24ui: { type: null, required: false }
});
defineSlots();
const appConfig = useAppConfig();
const b24ui = computed(() => tv({ extend: tv(theme), ...appConfig.b24ui?.prose?.a || {} })());
</script>

<template>
  <B24Link :href="href" :target="target" data-slot="base" :class="b24ui.base({ class: [props.b24ui?.base, props.class] })">
    <slot />
  </B24Link>
</template>
