π Status: In DevelopmentThis package is currently under heavy development. Feedback is always welcome, but be careful with using it in production. API is not ready yet and can receive large changes.
@corpuscule/form
Lightweight set of decorators for providing solid form experience for web components. Works as a
connector to
Features
- Small. According to Bundlephobia, it has following sizes:
- Typed. Typescript typings are included.
Installation
$ npm install --save final-form @corpuscule/form
or
$ yarn add final-form @corpuscule/form
Documentation
API documentation is available for the following modules:
Examples
Simple Form
Uses the default inputs: input
, select
, and textarea
to build a form with no validation.
Synchronous Record-Level Validation
Introduces a whole-record validation function and demonstrates how to use Field component to display errors next to fields.
Synchronous Field-Level Validation
Introduces field-level validation functions and demonstrates how to use Field component to display errors next to fields.