UNPKG

@blueprintjs/core

Version:
27 lines (26 loc) 1.06 kB
/* * Copyright 2015 Palantir Technologies, Inc. All rights reserved. * * Licensed under the terms of the LICENSE file distributed with this project. */ import * as tslib_1 from "tslib"; import * as classNames from "classnames"; import * as PureRender from "pure-render-decorator"; import * as React from "react"; import * as Classes from "../../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)); }; TabPanel.displayName = "Blueprint.TabPanel"; TabPanel = tslib_1.__decorate([ PureRender ], TabPanel); return TabPanel; }(React.Component)); export { TabPanel }; export var TabPanelFactory = React.createFactory(TabPanel);