@mizmoz/react-forms

0.5.5 • Public • Published

react-forms

ReactJS forms library for handling element creation, validation and history

This is in the very early stages of development so wouldn't recommend using unless you like the pain of large, frequent changes to the API.

// Look at this implementation for the form handling http://redux-form.com/6.1.0/examples/syncValidation/

ColorPicker

<ColorPicker
    value="#ffeeee"
    onChange={this.onChange}
    disableAlpha
/>

Select

Select drop down

<Select 
  name="food"
  onChange={onChange}
  options={options}
/>

Options

// Label only
const options = OrderedMap([
  ['Cheese'],
]);

// Label & value
const options = OrderedMap([
  ['Cheese', 'cheese'],
]);

// Groups
const options = OrderedMap([
  [
    'Dark Colours', OrderedMap([
      ['Black'],
      ['Navy Blue'],
    ]),
  ],
]);

Package Sidebar

Install

npm i @mizmoz/react-forms

Weekly Downloads

1

Version

0.5.5

License

MIT

Last publish

Collaborators

  • mizmoz