react-toolbox/components/list/ListSubHeader.js

23 lines
579 B
JavaScript
Raw Permalink Normal View History

import React from 'react';
import PropTypes from 'prop-types';
2016-05-22 20:08:47 +03:00
import classnames from 'classnames';
import { themr } from 'react-css-themr';
2017-01-26 20:05:32 +03:00
import { LIST } from '../identifiers';
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,
2017-01-26 20:05:32 +03:00
theme: PropTypes.object, // eslint-disable-line
2016-05-22 20:08:47 +03:00
};
ListSubHeader.defaultProps = {
2017-01-26 20:05:32 +03:00
className: '',
2015-10-19 03:38:25 +03:00
};
2016-05-29 21:59:54 +03:00
export default themr(LIST)(ListSubHeader);
export { ListSubHeader };