Nyan!
intv-contactuserform is a React Component Library. It comes from the necessity of using custom InputFields on front-side forms. Actually there's no stable version, that's why we don't use minimum @1.0.0. There are lot of testing and coverage to do.
You can install it through yarn or npm.
yarn add intv-contactuserform npm install intv-contactuserform
First thing you will need is a JSON structure with all inputs you want to use.
An example of it on src/data/structure.json
In this structure you can see all input types that are compatible with contactuserform actually.
Once you have installed as a dependency of your project, it's time to begin to use it.
As a React component you should import contactuserform this way.
import {userForm} from 'intv-contactuserform'
There are many ways to use this library in case you want to customize your submit button or your validation messages. You will find a simple example on src/form.js
Codesandbox intv-contactuserform-examples
Its an important and necessary part of the development so this task is in progress. Hope next version can be more documented and tested.
🐮
Actual version 0.0.11
- ☕ Add type=radio inputs
- ☕ Add custom type=checkbox-copy inputs
- ☕ Add custom type=title to show titles/texts inside form
- 🍕Add testing and coverage.
- 🍟Add custom titles in the middle of the form.
- 🍔Default css to use in case users don't have their own.
- 🌋Make some tutorial/guides of the different ways contactuserform can be used.