1.3.0 • Published 8 months ago

@vue-formify/joi v1.3.0

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

📦 Install

npm i @vue-formify/joi

💻 Usage

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

const schema = schemaFromJoi(
	object({
		first_name: string().required(),
		last_name: string().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

8 months ago

1.2.8

9 months ago

1.1.4

11 months ago

0.0.31

1 year ago

0.0.30

1 year ago