UNPKG

cosmo-ui

Version:
20 lines 664 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = require("tslib"); var React = require("react"); var Spacer = (function (_super) { tslib_1.__extends(Spacer, _super); function Spacer() { return _super !== null && _super.apply(this, arguments) || this; } Spacer.prototype.render = function () { return (React.createElement("div", { className: "height-100", style: { width: "" + this.props.width + this.props.widthType } })); }; return Spacer; }(React.Component)); Spacer.defaultProps = { width: 5, widthType: '%', }; exports.Spacer = Spacer; //# sourceMappingURL=spacer.js.map