0.1.1 âĸ Published 6 years ago
@wino/react-form-polaris v0.1.1
react-form
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).
đĨ Highlights
- Declarative composability
- Blazing fast
- Build on top of
formik
- Validation and error messages management with i18n support
- Tested with Jest
- Strictly-typed with Typescript
đ Demos
- Polaris typescript app âĄī¸ See it !
đģ How to use
Install as project dependency:
$ yarn add react-form-polaris
Now 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>
)
}
đē Contribute
Want to hack on react-form
? Awesome! We welcome contributions from anyone and everyone. :rocket:
- 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. ī¸
đ Questions
If you have any questions, feel free to open an issue.