mirror of
https://github.com/versia-pub/frontend.git
synced 2026-01-26 20:36:01 +01:00
26 lines
512 B
Vue
26 lines
512 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>
|