mirror of
https://github.com/versia-pub/frontend.git
synced 2025-12-06 08:28:20 +01:00
30 lines
558 B
Vue
30 lines
558 B
Vue
|
|
<template>
|
||
|
|
<FormItem>
|
||
|
|
<FormLabel>
|
||
|
|
{{ title }}
|
||
|
|
</FormLabel>
|
||
|
|
<FormControl>
|
||
|
|
<slot />
|
||
|
|
</FormControl>
|
||
|
|
<FormDescription v-if="description">
|
||
|
|
{{ description }}
|
||
|
|
</FormDescription>
|
||
|
|
<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>
|