<script>
import theme from "#build/b24ui/prose/accordion-item";
</script>

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

<template>
  <div :class="b24ui({ class: props.class })">
    <slot>
      {{ description }}
    </slot>
  </div>
</template>
