UNPKG

@activelylearn/material-ui

Version:

Material-UI's workspace package

40 lines (34 loc) 994 B
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import withStyles from '../styles/withStyles'; export const styles = theme => ({ root: { display: 'flex', padding: `${theme.spacing.unit}px ${theme.spacing.unit * 3}px ${theme.spacing.unit * 3}px`, }, }); function ExpansionPanelDetails(props) { const { classes, children, className, ...other } = props; return ( <div className={classNames(classes.root, className)} {...other}> {children} </div> ); } ExpansionPanelDetails.propTypes = { /** * The content of the expansion panel details. */ children: PropTypes.node.isRequired, /** * Override or extend the styles applied to the component. * See [CSS API](#css-api) below for more details. */ classes: PropTypes.object.isRequired, /** * @ignore */ className: PropTypes.string, }; export default withStyles(styles, { name: 'MuiExpansionPanelDetails' })(ExpansionPanelDetails);