import React, { Fragment, PureComponent } from 'react'; import PropTypes from 'prop-types'; import { withStyles } from '@material-ui/core/styles'; import { Typography, Grid, Input, InputLabel, FormControl, FormHelperText } from '@material-ui/core'; const styles = theme => ({ demo: { height: 'auto', }, divider: { display: 'block', margin: `${theme.spacing(3)}px 0`, }, input: { margin: theme.spacing(3), }, container: { display: 'flex', flexWrap: 'wrap', }, formControl: { margin: theme.spacing(3), }, }); class TextFields extends PureComponent { state = { name: 'Composed TextField', }; handleChange = event => { this.setState({ name: event.target.value }); }; render() { const { classes } = this.props; return ( Textfield Components TextField is composed of smaller components that you can leverage directly to significantly customize your form inputs.
Name Name Some important helper text Name Disabled Name Error
Input State
); } } TextFields.propTypes = { classes: PropTypes.object.isRequired, }; export default withStyles(styles)(TextFields);