Nondigestible Purple Mayonnaise

npm

Need private packages and team management tools?Check out npm Orgs. »

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>
}

Keywords

none

install

npm i react-form-controls

Downloadsweekly downloads

1

version

1.0.11

license

ISC

last publish

collaborators

  • avatar
Report a vulnerability