0.0.0-alpha.19 • Published 10 months ago

@react-formgen/yup v0.0.0-alpha.19

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

@react-formgen/yup

A headless, type-safe, customizable, and super simple React form and data view generator. Turn your Yup schemas into forms and data views with ease.

npm version License: MIT

Docs are boring, take me to the examples!

Takes a Yup schema, some initial data (if you have any), and a few callbacks (onSubmit and onError), and returns a form with input validation and error handling.

Can be used with (almost) any UI component library, including your own.

Use cases:

  1. You don't want (or don't have time) to write a bunch of forms from scratch.
  2. You want to share Yup schema with your backend (assuming you're using something JS/TS based on the backend) to have a consistent end-to-end validation experience (one schema to rule them all! 🧙‍♂️).
  3. You want to generate forms dynamically (e.g., for a CMS, a form builder, a configuration tool, etc.).

Installation

Install with npm

npm install @react-formgen/yup yup

with Yarn

yarn add @react-formgen/yup yup

or with pnpm

pnpm install @react-formgen/yup yup

Note: this package is an attempt to replicate the form-generating functionality introduced by @react-formgen/json-schema but with Yup schemas instead of JSON schemas and Yup validation instead of Ajv validation.

0.0.0-alpha.19

10 months ago

0.0.0-alpha.18

10 months ago

0.0.0-alpha.17

10 months ago

0.0.0-alpha.16

10 months ago

0.0.0-alpha.15

10 months ago

0.0.0-alpha.14

11 months ago

0.0.0-alpha.13

11 months ago

0.0.0-alpha.12

11 months ago

0.0.0-alpha.2

12 months ago

0.0.0-alpha.1

12 months ago

0.0.0-alpha.0

12 months ago