react-form provides tools to manage forms in React.js app. This library is based on formik. It also provides ready-to-use components for use with [Polaris] UI kit(https://polaris.shopify.com).
- Declarative composability
- Blazing fast
- Build on top of
formik - Validation and error messages management with i18n support
- Tested with Jest
- Strictly-typed with Typescript
Install as project dependency:
$ yarn add react-form-polarisNow you can use it to manager your forms without pain:
import * as React from 'react'
import { Form, TextField } from 'react-form-polaris'
function App() {
return (
<Form onSubmit={console.log}>
<TextField name="name" label="Say My Name" initialValue="Heisenberg" />
</Form>
)
}Want to hack on react-form? Awesome! We welcome contributions from anyone and everyone. 🚀
- Fork this repository to your own GitHub account and then clone it to your local device
- Install dependencies using Yarn:
yarn - Ensure that the tests are passing using
yarn test - Send a pull request 🙌
Remember to add tests for your change if possible. ️
If you have any questions, feel free to open an issue.