UNPKG

1.4 kBTypeScriptView Raw
1import * as React from 'react';
2import TabPane from './TabPanelList/TabPane';
3import type { TabPosition, RenderTabBar, TabsLocale, EditableConfig, AnimatedConfig, OnTabScroll, TabBarExtraContent } from './interface';
4export interface TabsProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'> {
5 prefixCls?: string;
6 className?: string;
7 style?: React.CSSProperties;
8 children?: React.ReactNode;
9 id?: string;
10 activeKey?: string;
11 defaultActiveKey?: string;
12 direction?: 'ltr' | 'rtl';
13 animated?: boolean | AnimatedConfig;
14 renderTabBar?: RenderTabBar;
15 tabBarExtraContent?: TabBarExtraContent;
16 tabBarGutter?: number;
17 tabBarStyle?: React.CSSProperties;
18 tabPosition?: TabPosition;
19 destroyInactiveTabPane?: boolean;
20 onChange?: (activeKey: string) => void;
21 onTabClick?: (activeKey: string, e: React.KeyboardEvent | React.MouseEvent) => void;
22 onTabScroll?: OnTabScroll;
23 editable?: EditableConfig;
24 locale?: TabsLocale;
25 moreIcon?: React.ReactNode;
26 /** @private Internal usage. Not promise will rename in future */
27 moreTransitionName?: string;
28}
29declare const ForwardTabs: React.ForwardRefExoticComponent<TabsProps & React.RefAttributes<HTMLDivElement>>;
30export declare type ForwardTabsType = typeof ForwardTabs & {
31 TabPane: typeof TabPane;
32};
33declare const _default: ForwardTabsType;
34export default _default;