MUI Form Fields
![npm version](https://badge.fury.io/js/mui-form-fields.svg)
Material UI + FinalForm Fields, packaged and ready to go! :package:
MUI Form Fields help you build beautiful material-ui components with the
mninimal amount of code possible. This way you can keep focusing on your logic.
:dart:
Installation
$ npm i --save mui-form-fields
This project also require the following peer dependencies:
Install all of them via:
$ npm i --save @date-io/core @date-io/moment @material-ui/core @material-ui/icons classnames core-js css-vendor final-form is-plain-object jss moment react react-dom react-dropzone react-final-form react-text-mask text-mask-addons
Examples
This form:
is generated by this code:
<FormDialog
size="sm"
title="Create User"
onClose={() => console.log("close")}
onSubmit={(...args) => console.log(args)}
open
dividers
>
<FormTextField icon="person" name="name" label="Full Name"/>
<FormTextField icon="mail" name="email" label="Email"/>
<FormPhoneField name="phone" label="Phone"/>
<FormDateField icon="today" name="birthday" label="Birthday"/>
<FormSwitchField icon="security" name="protected" label="Protected"/>
<FormSwitchField icon="verified_user" name="admin" label="Admin"/>
<FormFileUploadField icon="attachment" name="identification" label="Social Security"/>
</FormDialog>
Usage
We currently have the following FormFields available:
Click on each of them to get more details about the usage of each of them.
License
The files included in this repository are licensed under the MIT license.