UNPKG

react-toolbox-build4server

Version:

Builds react-toolbox in such a way that it's components can be required and used in node - most likely for server-side rendered webapps - without having to depend on webpack to build your entire server-side project

29 lines (23 loc) 559 B
import React from 'react'; import classnames from 'classnames'; import style from './style'; const Panel = ({ children, className, scrollY }) => { const _className = classnames(style.panel, { [style.scrollY]: scrollY }, className); return ( <div data-react-toolbox='panel' className={_className}> {children} </div> ); }; Panel.propTypes = { children: React.PropTypes.any, className: React.PropTypes.string, scrollY: React.PropTypes.bool }; Panel.defaultProps = { className: '', scrollY: false }; export default Panel;