UNPKG

react-material-web-components

Version:
32 lines (27 loc) 609 B
import React, {PureComponent} from 'react' import PropTypes from 'prop-types' import classNames from 'classnames' class CardMedia extends PureComponent { static displayName = 'CardMedia' static propTypes = { children: PropTypes.node, className: PropTypes.string, } render() { const { children, className, ...otherProps, } = this.props const cssClasses = classNames('mdc-card__media', className) return ( <section {...otherProps} className={cssClasses} > {children} </section> ) } } export default CardMedia