项目作者: kettanaito

项目描述 :
Form prototyping framework for React Advanced Form. Tailor production-ready forms in a matter of minutes. Write the logic, do the styles later.
高级语言: JavaScript
项目地址: git://github.com/kettanaito/react-advanced-form-addons.git
创建时间: 2018-01-23T09:13:29Z
项目社区:https://github.com/kettanaito/react-advanced-form-addons

开源协议:MIT License

下载


React Advanced Form Addons

A collection of tools dedicated for fast form prototyping using React Advanced Form.

Components

Fields

  • Input
  • Radio
  • Checkbox
  • Select
  • Textarea

Other

  • Label
  • Button

Getting started

Install

NPM:

  1. npm install react-advanced-form-addons --save

Yarn:

  1. yarn install react-advanced-form-addons

Note: You would need to have react-advanced-form installed as a peer dependency in order to use this package.

Prototype!

  1. import React from 'react';
  2. import { Form } from 'react-advanced-form';
  3. import { Input, Select } from 'react-advanced-form-addons';
  4. export default class Example extends React.Component {
  5. render() {
  6. return (
  7. <Form>
  8. <Input
  9. name="username"
  10. required />
  11. <Select
  12. name="role"
  13. required>
  14. <option value="admin">Administrator</option>
  15. <option value="editor">Editor</option>
  16. </Select>
  17. </Form>
  18. );
  19. }
  20. }

License

This project is issued under MIT License.