react-form-controls

1.0.11 • Public • Published

React Form Controls

Controls to make working with forms simple.

npm install react-form-controls --save

Usage

import Form, { Text, TextArea, Checkbox, Button } from 'react-form-controls'
 
export default () => {
  return <Form onSubmit={({
    first_name,
    last_name,
    age
  }) => {
    console.log({ first_name, last_name, age })
  }}>
    <Text name="first_name" />
    <Text name="last_name" />
    <Text name="age" type="number" />
    <Button>Submit</Button>
  </Form>
}

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.110latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.110
1.0.100
1.0.90
1.0.80
1.0.70
1.0.60
1.0.50
1.0.40
1.0.30
1.0.20
1.0.10
1.0.00

Package Sidebar

Install

npm i react-form-controls

Weekly Downloads

0

Version

1.0.11

License

ISC

Unpacked Size

26.8 kB

Total Files

16

Last publish

Collaborators

  • rphansen91