Prg Form
React Form components for Bulma.css.
There is API Documentation.
Usage within Form
; <Form className="special-class" onSubmit= console onChange= console values=values> <Input type="email" name="inputName" label="Input Label" /> <button>Submit</button></Form>
Usage without Form
- onchange event is not passed to form
; <Input name="inputName" label="Input Label" value=value onChange= {}/>
Basic Form Components
-
;<Inputname="inputName"label="Input Label"type="password"maxLength=24/>
-
;<Checkboxname="checkbox"defaultValue/>
-
;<TextAreaname="inputName"readOnlycols=30rows=7/>
-
Is nice, because it works with native
<File>
objects.;// as array of files<Filename="files[]"multiple/><Filename="file"/>
Advanced using the file upload
;; { const validator = ; validator ; const onSubmit = { const data = ; const flatData = ; Object ; thisrequest = $; }; return <div className="container"> <ValidatorForm validator=validator onSubmit= > <File name="file" label="Please put the Excel file here" /> <button className="button">Go</button> </ValidatorForm> </div>;}