Install my-project with npm
npm install flexible-react-form-elements
In a React app, you can use form elements like this:
import { Input } from 'flexible-react-form-elements'
import { Selectmenu } from 'flexible-react-form-elements'
import { Textarea} from 'flexible-react-form-elements'
import { Checkbox } from 'flexible-react-form-elements'
import { SubmitButton} from 'flexible-react-form-elements'
Props | value |
---|---|
label | string |
type | text/number/email/password |
name | string |
value | value |
placeholder | string |
onChange | function() |
width | custom width size |
padding | custom padding size |
Props | value |
---|---|
label | string |
name | string |
onChange | function() |
options | array of objects |
array of objects = [ {displayName: ' ', value: ' '}]
Props | value |
---|---|
label | string |
placeholder | string |
name | string |
value | value |
onChange | function() |
Props | value |
---|---|
label | string |
name | string |
checked | boolean |
onChange | function() |
'primary', 'secondary', 'info', 'success', 'warning', 'error', 'light', 'dark'
'#yourcolorcode'
'#yourcolorcode'
'center'
'small', 'medium'
boolean :- 'true', 'false'
function()