forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
react-tabs.d.ts
61 lines (46 loc) · 1.36 KB
/
react-tabs.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
// Type definitions for react-tabs 0.5.3
// Project: https://github.com/reactjs/react-tabs/
// Definitions by: Yuu Igarashi <https://github.com/yu-i9/>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference path="../react/react.d.ts" />
declare namespace ReactTabs {
interface TabsProps {
className?: string;
selectedIndex?: number;
focus?: boolean;
forceRenderTabPanel?: boolean;
onSelect?: (index: number, last: number) => void;
}
interface Tabs extends __React.ComponentClass<TabsProps> {}
interface TabListProps {
className?: string;
}
interface TabList extends __React.ComponentClass<TabListProps> {}
interface TabProps {
className?: string;
focus?: boolean;
selected?: boolean;
id?: string;
panelId?: string;
}
interface Tab extends __React.ComponentClass<TabProps> {}
interface TabPanelProps {
className?: string;
selected?: boolean;
id?: string;
tabId?: string;
}
interface TabPanel extends __React.ComponentClass<TabPanelProps> {}
}
declare module "react-tabs" {
var Tabs: ReactTabs.Tabs;
var TabList: ReactTabs.TabList;
var Tab: ReactTabs.Tab;
var TabPanel: ReactTabs.TabPanel;
export {
Tabs,
TabList,
Tab,
TabPanel
}
}