@difizen/mana-react
Version:
19 lines • 734 B
TypeScript
import type { TabsProps as RcTabsProps } from 'rc-tabs';
import { TabPane } from 'rc-tabs';
import * as React from 'react';
import './styles/index.less';
export type { TabPaneProps } from 'rc-tabs';
export type TabsType = 'line' | 'card' | 'editable-card';
export type TabsPosition = 'top' | 'right' | 'bottom' | 'left';
export interface TabsProps extends Omit<RcTabsProps, 'editable'> {
type?: TabsType;
hideAdd?: boolean;
centered?: boolean;
addIcon?: React.ReactNode;
onEdit?: (e: React.MouseEvent | React.KeyboardEvent | string, action: 'add' | 'remove') => void;
}
interface Tabs extends React.FC<TabsProps> {
TabPane: typeof TabPane;
}
export declare const Tabs: Tabs;
//# sourceMappingURL=index.d.ts.map