1 | import type { TabsProps as RcTabsProps } from 'rc-tabs';
|
2 | import * as React from 'react';
|
3 | import type { SizeType } from '../config-provider/SizeContext';
|
4 | import { type TabPaneProps } from './TabPane';
|
5 | export type TabsType = 'line' | 'card' | 'editable-card';
|
6 | export type TabsPosition = 'top' | 'right' | 'bottom' | 'left';
|
7 | export type { TabPaneProps };
|
8 | export interface TabsProps extends Omit<RcTabsProps, 'editable'> {
|
9 | type?: TabsType;
|
10 | size?: SizeType;
|
11 | hideAdd?: boolean;
|
12 | centered?: boolean;
|
13 | addIcon?: React.ReactNode;
|
14 | onEdit?: (e: React.MouseEvent | React.KeyboardEvent | string, action: 'add' | 'remove') => void;
|
15 | children?: React.ReactNode;
|
16 | }
|
17 | declare function Tabs({ type, className, size: propSize, onEdit, hideAdd, centered, addIcon, popupClassName, children, items, animated, ...props }: TabsProps): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
18 | declare namespace Tabs {
|
19 | var TabPane: React.FC<TabPaneProps>;
|
20 | }
|
21 | export default Tabs;
|