bulma-react-form
simple form validate 、auto inject and show error when need , display UI with framework bulma
.
Install
npm install --save bulma-react-form
Usage
import React Component from 'react' import formWrapper FormItem Input from 'bulma-react-form' { const form = thisprops; return <div ='container'> <FormItem ='input required' => form <Input =/> </FormItem> <FormItem ='input not required' => form <Input =/> </FormItem> <div ="field is-grouped"> <div ="control"> <button ="button is-link" =>提交</button> </div> <div ="control"> <button ="button is-link is-light">Cancel</button> </div> </div> </div> } App;
License
MIT © eaTong