UNPKG

@blueprintjs/core

Version:
30 lines 1.12 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 classNames from "classnames"; import * as React from "react"; import * as Classes from "../../common/classes"; import { DISPLAYNAME_PREFIX } from "../../common/props"; var Tab = /** @class */ (function (_super) { tslib_1.__extends(Tab, _super); function Tab() { return _super !== null && _super.apply(this, arguments) || this; } // this component is never rendered directly; see Tabs#renderTabPanel() /* istanbul ignore next */ Tab.prototype.render = function () { var _a = this.props, className = _a.className, panel = _a.panel; return (React.createElement("div", { className: classNames(Classes.TAB_PANEL, className), role: "tablist" }, panel)); }; Tab.defaultProps = { disabled: false, id: undefined, }; Tab.displayName = DISPLAYNAME_PREFIX + ".Tab"; return Tab; }(React.PureComponent)); export { Tab }; //# sourceMappingURL=tab.js.map