1 | import * as React from 'react';
|
2 |
|
3 | import TabContainer from './TabContainer';
|
4 | import TabContent from './TabContent';
|
5 | import TabPane from './TabPane';
|
6 |
|
7 | import { BsPrefixComponent } from './helpers';
|
8 |
|
9 | export interface TabProps extends React.ComponentPropsWithRef<typeof TabPane> {
|
10 | eventKey?: unknown;
|
11 | title: React.ReactNode;
|
12 | disabled?: boolean;
|
13 | tabClassName?: string;
|
14 | }
|
15 |
|
16 | declare class Tab<
|
17 | As extends React.ElementType = 'div'
|
18 | > extends BsPrefixComponent<As, TabProps> {
|
19 | static Container: typeof TabContainer;
|
20 | static Content: typeof TabContent;
|
21 | static Pane: typeof TabPane;
|
22 | }
|
23 |
|
24 | export default Tab;
|