UNPKG

609 BTypeScriptView Raw
1import * as React from 'react';
2
3import TabContainer from './TabContainer';
4import TabContent from './TabContent';
5import TabPane from './TabPane';
6
7import { BsPrefixComponent } from './helpers';
8
9export interface TabProps extends React.ComponentPropsWithRef<typeof TabPane> {
10 eventKey?: unknown;
11 title: React.ReactNode;
12 disabled?: boolean;
13 tabClassName?: string;
14}
15
16declare 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
24export default Tab;