UNPKG

@blueprintjs/core

Version:
23 lines 825 B
/* * Copyright 2015 Palantir Technologies, Inc. All rights reserved. * * Licensed under the terms of the LICENSE file distributed with this project. */ import classNames from "classnames"; import * as React from "react"; import * as Classes from "../../common/classes"; import { DISPLAYNAME_PREFIX } from "../../common/props"; export class Tab extends React.PureComponent { // this component is never rendered directly; see Tabs#renderTabPanel() /* istanbul ignore next */ render() { const { className, panel } = this.props; return (React.createElement("div", { className: classNames(Classes.TAB_PANEL, className), role: "tablist" }, panel)); } } Tab.defaultProps = { disabled: false, id: undefined, }; Tab.displayName = `${DISPLAYNAME_PREFIX}.Tab`; //# sourceMappingURL=tab.js.map