UNPKG

materialuiupgraded

Version:

Material-UI's workspace package

41 lines (35 loc) 945 B
// @inheritedComponent Typography import React from 'react'; import PropTypes from 'prop-types'; import withStyles from '../styles/withStyles'; import Typography from '../Typography'; export const styles = { /* Styles applied to the root element. */ root: { // Should use variant="body1" in v4.0.0 lineHeight: 1.5, }, }; function DialogContentText(props) { return ( <Typography component="p" internalDeprecatedVariant variant="subheading" color="textSecondary" {...props} /> ); } DialogContentText.propTypes = { /** * The content of the component. */ children: PropTypes.node, /** * Override or extend the styles applied to the component. * See [CSS API](#css-api) below for more details. */ classes: PropTypes.object.isRequired, }; export default withStyles(styles, { name: 'MuiDialogContentText' })(DialogContentText);