mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
46 lines
1.6 KiB
TypeScript
46 lines
1.6 KiB
TypeScript
// Type definitions for react-tabs 2.3.0
|
|
// Project: https://github.com/reactjs/react-tabs/
|
|
// Definitions by: Yuu Igarashi <https://github.com/yu-i9/>, Daniel Tschinder <https://github.com/danez>, Ummon Karpe <https://github.com/Equationist>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
// TypeScript Version: 2.8
|
|
|
|
import * as React from 'react';
|
|
|
|
export interface TabsProps {
|
|
className?: string | Array<string> | { [name: string]: boolean; };
|
|
defaultFocus?: boolean;
|
|
defaultIndex?: number;
|
|
disabledTabClassName?: string;
|
|
domRef?: (node?: HTMLElement) => void;
|
|
forceRenderTabPanel?: boolean;
|
|
onSelect?: (index: number, last: number, event: Event) => boolean | void;
|
|
selectedIndex?: number;
|
|
selectedTabClassName?: string;
|
|
selectedTabPanelClassName?: string;
|
|
}
|
|
|
|
export interface TabListProps {
|
|
className?: string | Array<string> | { [name: string]: boolean; };
|
|
}
|
|
|
|
export interface TabProps {
|
|
className?: string | Array<string> | { [name: string]: boolean; };
|
|
disabled?: boolean;
|
|
disabledClassName?: string;
|
|
selectedClassName?: string;
|
|
tabIndex?: string;
|
|
}
|
|
|
|
export interface TabPanelProps {
|
|
className?: string | Array<string> | { [name: string]: boolean; };
|
|
forceRender?: boolean;
|
|
selectedClassName?: string;
|
|
}
|
|
|
|
export declare class Tabs extends React.Component<TabsProps> { }
|
|
export declare class TabList extends React.Component<TabListProps> { }
|
|
export declare class Tab extends React.Component<TabProps> { }
|
|
export declare class TabPanel extends React.Component<TabPanelProps> { }
|
|
|
|
export declare function resetIdCounter(): void;
|