Skip to content
Source
Sign inSign up
TanStack/form
Open History to see the last commit

FieldInfo.vue

14 lines364 Bytes

1<script setup lang="ts">
2import { AnyFieldApi } from '@tanstack/vue-form'
3​
4const props = defineProps<{
5 state: AnyFieldApi['state']
6}>()
7</script>
8​
9<template>
10 <template v-if="props.state.meta.isTouched">
11 <em v-for="error of props.state.meta.errors">{{ error }}</em>
12 {{ props.state.meta.isValidating ? 'Validating...' : null }}
13 </template>
14</template>