mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* [react] Use HTMLDialogElement for the dialog node * Actually add the `open` property * This update requires typescript 2.6 * Update dependents of react to also require typescript 2.6
44 lines
1.5 KiB
TypeScript
44 lines
1.5 KiB
TypeScript
// Type definitions for react-tabs 1.0.0
|
|
// Project: https://github.com/reactjs/react-tabs/
|
|
// Definitions by: Yuu Igarashi <https://github.com/yu-i9/>, Daniel Tschinder <https://github.com/danez>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
// TypeScript Version: 2.6
|
|
|
|
import * as React from 'react';
|
|
|
|
export interface TabsProps {
|
|
className?: string | Array<string> | { [name: string]: boolean; };
|
|
defaultFocus?: boolean;
|
|
defaultIndex?: number;
|
|
disabledTabClassName?: string;
|
|
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;
|
|
}
|
|
|
|
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;
|