1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<script lang="ts" setup>
import type { HTMLAttributes } from 'vue';
 
import { cn } from '../../../../../base/shared/src/utils';
 
import { useFormField } from './useFormField';
 
const props = defineProps<{
  class?: HTMLAttributes['class'];
}>();
 
const { formDescriptionId } = useFormField();
</script>
 
<template>
  <p
    :id="formDescriptionId"
    data-slot="form-description"
    :class="cn('text-muted-foreground text-sm', props.class)"
  >
    <slot></slot>
  </p>
</template>