final-form-material-ui

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

  • Owner: Deadly0/final-form-material-ui
  • Platform:
  • License::
  • Category::
  • Topic:
  • Like:
    0
      Compare:

Github stars Tracking Chart

Final Form Material UI

NPM Version
NPM Downloads

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

Available fields

import {TextField, Checkbox, Radio, Select, Input} from 'final-form-material-ui';
TextField
import React from 'react';
import {Field} from 'react-final-form';
import {TextField} from 'final-form-material-ui';

<Field
    name="domain"
    type="text"
    component={TextField}
    label="Domain"
    margin="normal"
    fullWidth
/>
Input
import React from 'react';
import {Field} from 'react-final-form';
import {Input} from 'final-form-material-ui';
import InputAdornment from '@material-ui/core/InputAdornment';

<Field
	name="password"
	component={Input}
	className="input"
	type="password"
	placeholder="Password"
	endAdornment={
		<InputAdornment position="end">
			<Link className="inputLink" to="/forgot">
				Forgot password?
			</Link>
		</InputAdornment>
	}
/>
Select

Use can pass any props from Select docs to Field.
Additional props for Field:

  • label - label for select
  • formControlProps - object of props for FormControl component
import React from 'react';
import {Field} from 'react-final-form';
import {Select} from 'final-form-material-ui';
import MenuItem from '@material-ui/core/MenuItem';

<Field
    name="city"
    label="Select city"
    formControlProps={{className: 'my-class'}}
    component={Select}
>
    <MenuItem value="London">
        London
    </MenuItem>
    
    <MenuItem value="Paris">
        Paris
    </MenuItem>
</Field>

Main metrics

Overview
Name With OwnerDeadly0/final-form-material-ui
Primary LanguageTypeScript
Program languageJavaScript (Language Count: 2)
Platform
License:
所有者活动
Created At2018-06-12 17:15:35
Pushed At2022-12-03 11:33:35
Last Commit At2019-04-01 00:06:33
Release Count4
Last Release Name0.3.0 (Posted on )
First Release Namev0.1 (Posted on )
用户参与
Stargazers Count92
Watchers Count4
Fork Count31
Commits Count18
Has Issues Enabled
Issues Count18
Issue Open Count15
Pull Requests Count3
Pull Requests Open Count16
Pull Requests Close Count7
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private