@types/react-bootstrap
Version:
TypeScript definitions for react-bootstrap
24 lines (22 loc) • 921 B
TypeScript
import * as React from "react";
import { Omit, TransitionCallbacks } from "react-bootstrap";
import TabContainer = require("./TabContainer");
import TabPane = require("./TabPane");
import TabContent = require("./TabContent");
declare namespace Tab {
export interface TabProps extends TransitionCallbacks, Omit<React.HTMLProps<Tab>, "title"> {
animation?: boolean | undefined;
"aria-labelledby"?: string | undefined;
bsClass?: string | undefined;
eventKey?: any; // TODO: Add more specific type
unmountOnExit?: boolean | undefined;
tabClassName?: string | undefined;
title?: React.ReactNode | undefined; // Override HTMLProps.title to allow nodes not just strings
}
}
declare class Tab extends React.Component<Tab.TabProps> {
static Container: typeof TabContainer;
static Content: typeof TabContent;
static Pane: typeof TabPane;
}
export = Tab;