import React, { Fragment, PureComponent } from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import { withStyles } from '@material-ui/core/styles'; import DeleteIcon from '@material-ui/icons/Delete'; import AddShoppingCartIcon from '@material-ui/icons/AddShoppingCart'; import PhotoCamera from '@material-ui/icons/PhotoCamera'; import FileUpload from '@material-ui/icons/CloudUpload'; import KeyboardVoice from '@material-ui/icons/KeyboardVoice'; import Save from '@material-ui/icons/Save'; import { Button, Typography, Grid, Icon, IconButton } from '@material-ui/core'; const styles = theme => ({ demo: { height: 'auto', }, divider: { display: 'block', margin: `${theme.spacing(3)}px 0`, }, field: { margin: `${theme.spacing(3)}px 5px`, }, button: { margin: theme.spacing(1), }, inputUpload: { display: 'none', }, leftIcon: { marginRight: theme.spacing(1), }, rightIcon: { marginLeft: theme.spacing(1), }, iconSmall: { fontSize: 20, }, }); function doSomething(event) { alert(event.currentTarget.getAttribute('data-something')); } class StandardButtons extends PureComponent { render() { const { classes } = this.props; return ( Flat Button Flat buttons are text-only buttons. They may be used in dialogs, toolbars, or inline. They do not lift, but fill with color on press. Raised Button Raised buttons are rectangular-shaped buttons. They may be used inline. They lift and display ink reactions on press. Outline Button Icon Button Icon buttons are commonly found in app bars and toolbars. alarm Icon Raised Button Icon buttons are commonly found in app bars and toolbars. ); } } StandardButtons.propTypes = { classes: PropTypes.object.isRequired, }; export default withStyles(styles)(StandardButtons);