UNPKG

921 BTypeScriptView Raw
1import * as React from "react";
2import { Omit, TransitionCallbacks } from "react-bootstrap";
3import TabContainer = require("./TabContainer");
4import TabPane = require("./TabPane");
5import TabContent = require("./TabContent");
6
7declare namespace Tab {
8 export interface TabProps extends TransitionCallbacks, Omit<React.HTMLProps<Tab>, "title"> {
9 animation?: boolean | undefined;
10 "aria-labelledby"?: string | undefined;
11 bsClass?: string | undefined;
12 eventKey?: any; // TODO: Add more specific type
13 unmountOnExit?: boolean | undefined;
14 tabClassName?: string | undefined;
15 title?: React.ReactNode | undefined; // Override HTMLProps.title to allow nodes not just strings
16 }
17}
18declare class Tab extends React.Component<Tab.TabProps> {
19 static Container: typeof TabContainer;
20 static Content: typeof TabContent;
21 static Pane: typeof TabPane;
22}
23export = Tab;