react-toolbox/components/list/ListSubHeader.js

16 lines
380 B
JavaScript
Raw Normal View History

2015-10-19 03:38:25 +03:00
import React from 'react';
import style from './style';
const ListSubHeader = (props) => {
let className = style.subheader;
if (props.className) className += ` ${props.className}`;
return <h5 className={className}>{props.caption}</h5>;
};
2015-10-19 03:38:25 +03:00
ListSubHeader.propTypes = {
caption: React.PropTypes.string,
className: React.PropTypes.string
2015-10-19 03:38:25 +03:00
};
export default ListSubHeader;