UNPKG

materialuiupgraded

Version:

Material-UI's workspace package

38 lines (33 loc) 875 B
import React from 'react'; import PropTypes from 'prop-types'; import { withStyles } from '@material-ui/core/styles'; import LinearProgress from '@material-ui/core/LinearProgress'; const styles = { root: { flexGrow: 1, }, colorPrimary: { backgroundColor: '#B2DFDB', }, barColorPrimary: { backgroundColor: '#00695C', }, }; function LinearIndeterminate(props) { const { classes } = props; return ( <div className={classes.root}> <LinearProgress /> <br /> <LinearProgress color="secondary" /> <br /> <LinearProgress classes={{ colorPrimary: classes.colorPrimary, barColorPrimary: classes.barColorPrimary }} /> </div> ); } LinearIndeterminate.propTypes = { classes: PropTypes.object.isRequired, }; export default withStyles(styles)(LinearIndeterminate);