form-one

react-hook-form abstraction for controlled antd inputs

Usage no npm install needed!

<script type="module">
  import formOne from 'https://cdn.skypack.dev/form-one';
</script>

README

👋🏻 Welcome to FORM-ONE

Why?

form-one is built onto the react-hook-form library (which is an amazing library itself 🦄). form-one it is an abstraction of the react-hook-form library. form-one let you focusing just on the form api interface, which is really simple.

How?

The ui is made with ❤️ using the antd library and the core is built abstracting the react-hook-form library.

How to use form-one?

You can use form-one in React apps by just installing it

  npm i form-one
  import FormOne from 'form-one'

Why it is so simple?

These are the available props:

  <FormOne
    onChange
    onSubmit
    inputs
    layout
    validationSchema
    initialValues
  />

Let's have a look about how it works in a real demo, by visiting it's playground in Codesandbox or its storybook