UNPKG

apeman-react-list

Version:
58 lines (42 loc) 898 B
/** * List header component. * @class ApListHeader */ 'use strict' import React, {PropTypes as types} from 'react' import classnames from 'classnames' /** @lends ApListHeader */ const ApListHeader = React.createClass({ // -------------------- // Specs // -------------------- propTypes: {}, mixins: [], statics: {}, getInitialState () { return {} }, getDefaultProps () { return {} }, render () { const s = this let { state, props } = s return ( <div className={ classnames('ap-list-header', props.className) } style={ Object.assign({}, props.style) }> { props.children } </div> ) } // -------------------- // Lifecycle // -------------------- // ------------------ // Custom // ------------------ // ------------------ // Private // ------------------ }) export default ApListHeader