1 | import * as React from 'react';
|
2 | import type { TabsProps as RcTabsProps } from 'rc-tabs';
|
3 | import type { GetIndicatorSize } from 'rc-tabs/lib/hooks/useIndicator';
|
4 | import type { SizeType } from '../config-provider/SizeContext';
|
5 | import TabPane from './TabPane';
|
6 | import type { TabPaneProps } from './TabPane';
|
7 | export type TabsType = 'line' | 'card' | 'editable-card';
|
8 | export type TabsPosition = 'top' | 'right' | 'bottom' | 'left';
|
9 | export type { TabPaneProps };
|
10 | export interface TabsProps extends Omit<RcTabsProps, 'editable'> {
|
11 | rootClassName?: string;
|
12 | type?: TabsType;
|
13 | size?: SizeType;
|
14 | hideAdd?: boolean;
|
15 | centered?: boolean;
|
16 | addIcon?: React.ReactNode;
|
17 | removeIcon?: React.ReactNode;
|
18 | onEdit?: (e: React.MouseEvent | React.KeyboardEvent | string, action: 'add' | 'remove') => void;
|
19 | children?: React.ReactNode;
|
20 |
|
21 | indicatorSize?: GetIndicatorSize;
|
22 | }
|
23 | declare const Tabs: React.FC<TabsProps> & {
|
24 | TabPane: typeof TabPane;
|
25 | };
|
26 | export default Tabs;
|