@crpt/react-form

react-form React component

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
00Dec 17, 2018May 28, 2018Minified + gzip package size for @crpt/react-form in KB

Readme

react-form

Travis npm package Coveralls

Form

Form component. Can be used to wrap Input, Select and DatePicker components. Can simplify mass event handling for a set of components.

Usage


import { Form } from  "@crpt/react-form";
import { DatePicker } from  "@crpt/react-datepicker";


<Form onSubmit={vals => console.log('vals', vals)}>
    <DatePicker name="date" />
</Form>

Form

PropName Description Example
onSubmit: String Called on submit. <Form onSubmit={vals => console.log('vals', vals)}>
onCollapse: Function Called on collapse. <Form onCollapse={() => console.log('collapsed')}>
onClear: Function Called on clear. <Form onClear={() => console.log('cleared')}>

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.