UNPKG

1.27 kBTypeScriptView Raw
1import PropTypes from 'prop-types';
2import * as React from 'react';
3import { TabPaneProps } from './TabPane';
4export interface TabProps extends Omit<TabPaneProps, 'title'> {
5 title: React.ReactNode;
6 disabled?: boolean;
7 tabClassName?: string;
8 tabAttrs?: Record<string, any>;
9}
10declare const _default: React.FC<TabProps> & {
11 Container: {
12 ({ transition, ...props }: import("./TabContainer").TabContainerProps): React.JSX.Element;
13 propTypes: {
14 id: PropTypes.Requireable<string>;
15 transition: PropTypes.Requireable<NonNullable<boolean | PropTypes.ReactComponentLike | null | undefined>>;
16 mountOnEnter: PropTypes.Requireable<boolean>;
17 unmountOnExit: PropTypes.Requireable<boolean>;
18 generateChildId: PropTypes.Requireable<(...args: any[]) => any>;
19 onSelect: PropTypes.Requireable<(...args: any[]) => any>;
20 activeKey: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
21 };
22 displayName: string;
23 };
24 Content: import("./helpers").BsPrefixRefForwardingComponent<"div", import("./TabContent").TabContentProps>;
25 Pane: import("./helpers").BsPrefixRefForwardingComponent<"div", TabPaneProps>;
26};
27export default _default;