UNPKG

react-mdl

Version:

React Components wrapper for Material Design Lite UI

24 lines (19 loc) 607 B
import React, { PropTypes } from 'react'; import classNames from 'classnames'; import Spacer from './Spacer'; const HeaderRow = props => { const { className, title, children, ...otherProps } = props; const classes = classNames('mdl-layout__header-row', className); return ( <div className={classes} {...otherProps}> {title && <span className="mdl-layout-title">{title}</span>} {title && <Spacer />} {children} </div> ); }; HeaderRow.propTypes = { className: PropTypes.string, title: PropTypes.node }; export default HeaderRow;