25 lines
609 B
TypeScript
25 lines
609 B
TypeScript
import * as React from 'react';
|
|
|
|
import TabContainer from './TabContainer';
|
|
import TabContent from './TabContent';
|
|
import TabPane from './TabPane';
|
|
|
|
import { BsPrefixComponent } from './helpers';
|
|
|
|
export interface TabProps extends React.ComponentPropsWithRef<typeof TabPane> {
|
|
eventKey?: unknown;
|
|
title: React.ReactNode;
|
|
disabled?: boolean;
|
|
tabClassName?: string;
|
|
}
|
|
|
|
declare class Tab<
|
|
As extends React.ElementType = 'div'
|
|
> extends BsPrefixComponent<As, TabProps> {
|
|
static Container: typeof TabContainer;
|
|
static Content: typeof TabContent;
|
|
static Pane: typeof TabPane;
|
|
}
|
|
|
|
export default Tab;
|