react-toolbox/components/list/ListSubHeader.js

22 lines
536 B
JavaScript
Raw Normal View History

2016-05-29 22:11:04 +03:00
import React, { PropTypes } from 'react';
2016-05-22 20:08:47 +03:00
import classnames from 'classnames';
import { themr } from 'react-css-themr';
2016-05-29 21:59:54 +03:00
import { LIST } from '../identifiers.js';
2015-10-19 03:38:25 +03:00
2016-05-22 20:08:47 +03:00
const ListSubHeader = ({ caption, className, theme }) => (
<h5 className={classnames(theme.subheader, className)}>{caption}</h5>
);
2015-10-19 03:38:25 +03:00
ListSubHeader.propTypes = {
2016-05-29 22:11:04 +03:00
caption: PropTypes.string,
className: PropTypes.string,
theme: PropTypes.object
2016-05-22 20:08:47 +03:00
};
ListSubHeader.defaultProps = {
className: ''
2015-10-19 03:38:25 +03:00
};
2016-05-29 21:59:54 +03:00
export default themr(LIST)(ListSubHeader);
export { ListSubHeader };