@activelylearn/material-ui
Version:
Material-UI's workspace package
47 lines (40 loc) • 1.03 kB
JavaScript
// @inheritedComponent Typography
import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import withStyles from '../styles/withStyles';
import Typography from '../Typography';
export const styles = theme => ({
root: {
color: theme.palette.text.secondary,
},
});
function DialogContentText(props) {
const { children, classes, className, ...other } = props;
return (
<Typography
component="p"
variant="subheading"
className={classNames(classes.root, className)}
{...other}
>
{children}
</Typography>
);
}
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,
/**
* @ignore
*/
className: PropTypes.string,
};
export default withStyles(styles, { name: 'MuiDialogContentText' })(DialogContentText);