@effective-forms/yup
TypeScript icon, indicating that this package has built-in type declarations

0.0.4 • Public • Published

@effective-forms/yup

See full documentaion

About library

Integrate yup with core package

Installation

NPM

npm install yup @effective-forms/yup

Yarn

yarn add yup @effective-forms/yup

Usage example

import { createForm } from '@effective-forms/core';
import { yupSchema } from '@effective-forms/yup';
import { object, string } from 'yup';

const userSchema = object({
  email: string().required(),
  password: string().required(),
});

const form = createForm(
  yupSchema({
    schema: userSchema,
    initialValues: {
      email: '',
      password: '',
    },
  })
);

Package Sidebar

Install

npm i @effective-forms/yup

Weekly Downloads

0

Version

0.0.4

License

MIT

Unpacked Size

2.9 kB

Total Files

5

Last publish

Collaborators

  • miizzo