2024-12-02 17:20:27 +01:00
|
|
|
<script lang="ts" setup>
|
|
|
|
|
import type { HTMLAttributes } from "vue";
|
2025-06-26 22:39:02 +02:00
|
|
|
import { cn } from "@/lib/utils";
|
2024-12-02 17:20:27 +01:00
|
|
|
import { useFormField } from "./useFormField";
|
|
|
|
|
|
|
|
|
|
const props = defineProps<{
|
|
|
|
|
class?: HTMLAttributes["class"];
|
|
|
|
|
}>();
|
|
|
|
|
|
|
|
|
|
const { formDescriptionId } = useFormField();
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<template>
|
|
|
|
|
<p
|
|
|
|
|
:id="formDescriptionId"
|
2025-04-10 13:55:56 +02:00
|
|
|
data-slot="form-description"
|
|
|
|
|
:class="cn('text-muted-foreground text-sm', props.class)"
|
2024-12-02 17:20:27 +01:00
|
|
|
>
|
|
|
|
|
<slot />
|
|
|
|
|
</p>
|
|
|
|
|
</template>
|