UNPKG

apeman-react-list

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