1 | import PropTypes from 'prop-types';
|
2 | import React from 'react';
|
3 | import TabContent from './TabContent';
|
4 | import TabPane from './TabPane';
|
5 | export interface TabProps extends React.ComponentPropsWithRef<typeof TabPane> {
|
6 | eventKey?: string;
|
7 | title: React.ReactNode;
|
8 | disabled?: boolean;
|
9 | tabClassName?: string;
|
10 | }
|
11 | declare class Tab extends React.Component<TabProps> {
|
12 | static propTypes: {
|
13 | title: PropTypes.Validator<string | number | boolean | {} | PropTypes.ReactElementLike | PropTypes.ReactNodeArray>;
|
14 | };
|
15 | static Container: {
|
16 | (props: import("./TabContainer").TabContainerProps): JSX.Element;
|
17 | propTypes: {
|
18 | id: PropTypes.Validator<string>;
|
19 | transition: PropTypes.Requireable<string | boolean | ((props: any, context?: any) => any) | (new (props: any, context?: any) => any)>;
|
20 | mountOnEnter: PropTypes.Requireable<boolean>;
|
21 | unmountOnExit: PropTypes.Requireable<boolean>;
|
22 | generateChildId: PropTypes.Requireable<(...args: any[]) => any>;
|
23 | onSelect: PropTypes.Requireable<(...args: any[]) => any>;
|
24 | activeKey: PropTypes.Requireable<any>;
|
25 | };
|
26 | };
|
27 | static Content: TabContent;
|
28 | static Pane: TabPane;
|
29 | render(): null;
|
30 | }
|
31 | export default Tab;
|