@up-group/react-controls
Version:
We know that there are a ton of react UI library projects to choose from. Our hope with this one is to provide the next generation of react components that you can use to bootstrap your next project, or as a reference for building a UIKit. Read on to get
30 lines • 1.4 kB
JavaScript
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
var React = require("react");
var UpContextMenuItemDivider = (function (_super) {
__extends(UpContextMenuItemDivider, _super);
function UpContextMenuItemDivider() {
return _super !== null && _super.apply(this, arguments) || this;
}
UpContextMenuItemDivider.prototype.render = function () {
var _a = this.props, size = _a.size, color = _a.color;
return (React.createElement("div", { style: { color: color, height: size, backgroundColor: color, display: 'inline-block', margin: "6px 0", width: "100%" } }));
};
UpContextMenuItemDivider.defaultProps = {
size: 1,
color: "black"
};
return UpContextMenuItemDivider;
}(React.PureComponent));
exports.default = UpContextMenuItemDivider;
//# sourceMappingURL=UpContextMenuItemDivider.js.map
;