@rmb185/react-form-components

A library of components for building forms in React

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
00Feb 13, 2019Mar 29, 2018Minified + gzip package size for @rmb185/react-form-components in KB

Readme

react-form-components

A library of components for building forms in React

CircleCI

Usage


import {FieldGroup, SelectBox, CheckBox, Input, TextArea} from '@rmb185/react-form-components';

or

const {FieldGroup, SelectBox, CheckBox, Input, TextArea} = require('@rmb185/react-form-components');

<FieldGroup
  key="input name"
  label="First Name"
  className="first-name-wrap">

  <Input
    className="first-name"
    name="first_name"
    type="text"
    required />

</FieldGroup>

Will render:

<div class="first-name-wrap">
    <label class="first-name-wrap__label">First name*</label>
    <input class="first-name text" type="text" name="first_name" required>
</div>

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.