materialuiupgraded
Version:
Material-UI's workspace package
22 lines (17 loc) • 565 B
JavaScript
import React from 'react';
import PropTypes from 'prop-types';
import { withStyles } from '@material-ui/core/styles';
const styles = theme => ({
root: {
...theme.typography.button,
backgroundColor: theme.palette.common.white,
padding: theme.spacing.unit,
},
});
function TypographyTheme(props) {
return <div className={props.classes.root}>{"This div's text looks like that of a button."}</div>;
}
TypographyTheme.propTypes = {
classes: PropTypes.object.isRequired,
};
export default withStyles(styles)(TypographyTheme);