2025-05-01 01:45:46 +02:00
|
|
|
<template>
|
|
|
|
|
<FormItem>
|
2025-12-09 22:32:22 +01:00
|
|
|
<FormLabel>{{ title }}</FormLabel>
|
2025-05-01 01:45:46 +02:00
|
|
|
<FormControl>
|
2026-01-09 21:47:12 +01:00
|
|
|
<slot />
|
2025-05-01 01:45:46 +02:00
|
|
|
</FormControl>
|
2025-12-09 22:32:22 +01:00
|
|
|
<FormDescription v-if="description">{{ description }}</FormDescription>
|
2026-01-09 21:47:12 +01:00
|
|
|
<FormMessage />
|
2025-05-01 01:45:46 +02:00
|
|
|
</FormItem>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script lang="ts" setup>
|
|
|
|
|
import {
|
|
|
|
|
FormControl,
|
|
|
|
|
FormDescription,
|
|
|
|
|
FormItem,
|
|
|
|
|
FormLabel,
|
|
|
|
|
FormMessage,
|
|
|
|
|
} from "../ui/form";
|
|
|
|
|
|
|
|
|
|
const { title, description } = defineProps<{
|
|
|
|
|
title: string;
|
|
|
|
|
description?: string;
|
|
|
|
|
}>();
|
|
|
|
|
</script>
|