UNPKG

@material-ui/lab

Version:

Material-UI Lab - Incubator for Material-UI React components.

53 lines (49 loc) 1.66 kB
import _extends from "@babel/runtime/helpers/esm/extends"; import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose"; import * as React from 'react'; import PropTypes from 'prop-types'; import { withStyles } from '@material-ui/core/styles'; import { Typography } from '@material-ui/core'; import clsx from 'clsx'; export const styles = theme => ({ /* Styles applied to the root element. */ root: { fontWeight: theme.typography.fontWeightMedium, marginTop: -2 } }); const AlertTitle = /*#__PURE__*/React.forwardRef(function AlertTitle(props, ref) { const { classes, className } = props, other = _objectWithoutPropertiesLoose(props, ["classes", "className"]); return /*#__PURE__*/React.createElement(Typography, _extends({ gutterBottom: true, component: "div", ref: ref, className: clsx(classes.root, className) }, other)); }); process.env.NODE_ENV !== "production" ? AlertTitle.propTypes = { // ----------------------------- Warning -------------------------------- // | These PropTypes are generated from the TypeScript type definitions | // | To update them edit the d.ts file and run "yarn proptypes" | // ---------------------------------------------------------------------- /** * The content of the component. */ children: PropTypes.node, /** * Override or extend the styles applied to the component. * See [CSS API](#css) below for more details. */ classes: PropTypes.object, /** * @ignore */ className: PropTypes.string } : void 0; export default withStyles(styles, { name: 'MuiAlertTitle' })(AlertTitle);