UNPKG

react-toolbox-legacy

Version:

Unofficial fork of the react-toolbox package, compatible with React v16

23 lines (18 loc) 564 B
import React from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import { themr } from 'react-css-themr-legacy'; import { LIST } from '../identifiers.js'; const ListSubHeader = ({ caption, className, theme }) => ( <h5 className={classnames(theme.subheader, className)}>{caption}</h5> ); ListSubHeader.propTypes = { caption: PropTypes.string, className: PropTypes.string, theme: PropTypes.object }; ListSubHeader.defaultProps = { className: '' }; export default themr(LIST)(ListSubHeader); export { ListSubHeader };