You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
414 B
20 lines
414 B
<script setup lang="ts">
|
|
import { Field } from 'vee-validate'
|
|
|
|
/**
|
|
* FormField component - Wraps vee-validate Field component
|
|
* Provides form validation and error handling
|
|
*/
|
|
|
|
interface Props {
|
|
name: string
|
|
}
|
|
|
|
defineProps<Props>()
|
|
</script>
|
|
|
|
<template>
|
|
<Field v-slot="{ field, errorMessage, meta }" :name="name">
|
|
<slot :field="field" :error-message="errorMessage" :meta="meta" />
|
|
</Field>
|
|
</template>
|
|
|