frontend/app/components/form/text.vue

26 lines
514 B
Vue
Raw Normal View History

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