import './css/HBoxLayout.css';
import classNames from 'classnames/bind';
import PropTypes from 'prop-types';

/**
 * 水平布局
 * @author tengge / https://github.com/tengge1
 */
class HBoxLayout extends React.Component {
    render() {
        const { className, style, children, ...others } = this.props;

        return <div
            className={classNames('HBoxLayout', className)}
            style={style}
            {...others}
               >{children}</div>;
    }
}

HBoxLayout.propTypes = {
    className: PropTypes.string,
    style: PropTypes.object,
    children: PropTypes.node
};

HBoxLayout.defaultProps = {
    className: null,
    style: null,
    children: null
};

export default HBoxLayout;