mirror of
https://github.com/versia-pub/frontend.git
synced 2025-12-06 00:18:20 +01:00
22 lines
454 B
Vue
22 lines
454 B
Vue
<script lang="ts" setup>
|
|
import { cn } from "@/lib/utils";
|
|
import type { HTMLAttributes } from "vue";
|
|
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 />
|
|
</p>
|
|
</template>
|