UNPKG

651 BTypeScriptView Raw
1import * as React from 'react';
2
3import Nav, { NavProps } from './Nav';
4
5import {
6 BsPrefixComponent,
7 SelectCallback,
8 BsPrefixComponentClass,
9} from './helpers';
10
11export interface TabsProps {
12 activeKey?: unknown;
13 defaultActiveKey?: unknown;
14 onSelect?: SelectCallback;
15 variant?: 'tabs' | 'pills';
16 transition?: false | React.ElementType;
17 id: string;
18 mountOnEnter?: boolean;
19 unmountOnExit?: boolean;
20}
21
22declare class Tabs<
23 // Need to use BsPrefixComponentClass to get proper type checking.
24 As extends React.ElementType = BsPrefixComponentClass<'div', NavProps>
25> extends BsPrefixComponent<As, TabsProps> {}
26
27export default Tabs;