Form
Form

Overview

A package for creating controlled forms in React (new tab) with built-in Zod (new tab) validation.
You own and control the rendered markup while the hooks take care of the state and validation.

npm versionnpm downloadsBundlephobia

Installation

Required dependencies

This package relies on React hooks (new tab) and thus requires version 16.3 or higher.

# npm
npm i --save @weser/form

# yarn
yarn add @weser/form

# pnpm
pnpm add @weser/form

Motivation

There are a dozen of form libraries out there already, so why create another one?
Well, I wanted to create a form library that is simple, lightweight and easy to use without sacrificing performance. Less boilerplate and more opinionated about how forms should be built.
This is not a one-size-fits-all solution, but rather my very own codified approach to building forms.

Benefits

This package provides a simple API for building forms with built-in Zod validation.

On this page