UNPKG

ost-ui

Version:
41 lines (32 loc) 1.2 kB
import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from 'babel-runtime/helpers/inherits'; import React from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; var OstWhiteSpace = function (_React$Component) { _inherits(OstWhiteSpace, _React$Component); function OstWhiteSpace() { _classCallCheck(this, OstWhiteSpace); return _possibleConstructorReturn(this, _React$Component.apply(this, arguments)); } OstWhiteSpace.prototype.render = function render() { var _props = this.props, prefixCls = _props.prefixCls, className = _props.className, size = _props.size, style = _props.style; var wrapCls = classnames(prefixCls, prefixCls + '-' + size, className); return React.createElement('div', { className: wrapCls, style: style }); }; return OstWhiteSpace; }(React.Component); OstWhiteSpace.defaultProps = { prefixCls: 'ost-white-space', size: 'md' }; export default OstWhiteSpace; OstWhiteSpace.propTypes = { prefixCls: PropTypes.string, size: PropTypes.string };