Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/Deadly0/final-form-material-ui

A set of wrapper components to facilitate using Material UI with Final Form
https://github.com/Deadly0/final-form-material-ui

Last synced: 3 months ago
JSON representation

A set of wrapper components to facilitate using Material UI with Final Form

Awesome Lists containing this project

README

        

# Final Form Material UI
[![NPM Version](https://img.shields.io/npm/v/final-form-material-ui.svg?style=flat-square)](https://www.npmjs.com/package/final-form-material-ui)
[![NPM Downloads](https://img.shields.io/npm/dm/final-form-material-ui.svg?style=flat-square)](https://www.npmjs.com/package/final-form-material-ui)

A set of wrapper components to facilitate using [Material-UI](https://github.com/mui-org/material-ui) with Final Form.

### Available fields
```jsx
import {TextField, Checkbox, Radio, Select, Input} from 'final-form-material-ui';
```

##### TextField
```jsx
import React from 'react';
import {Field} from 'react-final-form';
import {TextField} from 'final-form-material-ui';

```

##### Input
```jsx
import React from 'react';
import {Field} from 'react-final-form';
import {Input} from 'final-form-material-ui';
import InputAdornment from '@material-ui/core/InputAdornment';


Forgot password?


}
/>
```

##### Select
Use can pass any props from [`Select docs`](https://material-ui.com/api/select/) to `Field`.
Additional props for `Field`:
* `label` - label for select
* `formControlProps` - object of props for `FormControl` component

```jsx
import React from 'react';
import {Field} from 'react-final-form';
import {Select} from 'final-form-material-ui';
import MenuItem from '@material-ui/core/MenuItem';


London



Paris

```