mirror of
https://github.com/versia-pub/frontend.git
synced 2025-12-06 00:18:20 +01:00
21 lines
421 B
Vue
21 lines
421 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"
|
||
|
|
:class="cn('text-sm text-muted-foreground', props.class)"
|
||
|
|
>
|
||
|
|
<slot />
|
||
|
|
</p>
|
||
|
|
</template>
|