1.3.0 • Published 10 months ago

@vue-formify/zod v1.3.0

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

📦 Install

npm i @vue-formify/zod

💻 Usage

<script lang="ts" setup>
import { schemaFromZod } from '@vue-formify/zod';
import { object, string } from 'zod'

const schema = schemaFromZod(
	object({
		first_name: string().min(1, { message: 'Required' }),
		last_name: string().min(1, { message: 'Required' }),
	})
)

const sendForm = (data) => {
	console.log('data', data);
};

</script>

<template>
	<FormifyForm @submit="sendForm" :validation-schema="schema">
		<FormifyInput name="first_name" />
		<FormifyInput name="last_name" />
		<button>Send</button>
	</FormifyForm>
</template>
1.3.0

10 months ago

1.2.8

10 months ago

1.1.4

1 year ago

0.0.30

2 years ago

0.0.29

2 years ago

0.0.28

2 years ago