@rmb185/react-form-components

1.3.10 • Public • Published

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>

Dependencies (1)

Dev Dependencies (25)

Package Sidebar

Install

npm i @rmb185/react-form-components

Weekly Downloads

1

Version

1.3.10

License

MIT

Unpacked Size

1.71 MB

Total Files

22

Last publish

Collaborators

  • rmb185