mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-12 12:10:44 +08:00
Added definitions for react-tabs
This commit is contained in:
Vendored
+61
@@ -0,0 +1,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
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user