apeman-react-list
Version:
apeman react package for list component.
58 lines (42 loc) • 887 B
JSX
/**
* List body component.
* @class ApListBody
*/
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;