UNPKG

@blueprintjs/core

Version:
32 lines (30 loc) 1.3 kB
/* * Copyright 2015 Palantir Technologies, Inc. All rights reserved. * Licensed under the BSD-3 License as modified (the “License”); you may obtain a copy * of the license at https://github.com/palantir/blueprint/blob/master/LICENSE * and https://github.com/palantir/blueprint/blob/master/PATENTS */ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = require("tslib"); var classNames = require("classnames"); var PureRender = require("pure-render-decorator"); var React = require("react"); var Classes = require("../../common/classes"); var TabPanel = (function (_super) { tslib_1.__extends(TabPanel, _super); function TabPanel() { return _super !== null && _super.apply(this, arguments) || this; } TabPanel.prototype.render = function () { return (React.createElement("div", { "aria-labelledby": this.props._tabId, className: classNames(Classes.TAB_PANEL, this.props.className), id: this.props._id, role: "tabpanel" }, this.props.children)); }; return TabPanel; }(React.Component)); TabPanel.displayName = "Blueprint.TabPanel"; TabPanel = tslib_1.__decorate([ PureRender ], TabPanel); exports.TabPanel = TabPanel; exports.TabPanelFactory = React.createFactory(TabPanel); //# sourceMappingURL=tabPanel.js.map