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