<script setup>
import { cn } from "../../../utils/cn";
const props = defineProps({
  class: { type: [Boolean, null, String, Object, Array], required: false, skipCheck: true },
  variant: { type: String, required: false }
});
</script>

<template>
  <legend
    data-slot="field-legend"
    :data-variant="variant"
    :class="cn(
  'mb-3 font-medium',
  'data-[variant=legend]:text-base',
  'data-[variant=label]:text-sm',
  props.class
)"
  >
    <slot />
  </legend>
</template>
