@douyinfe/semi-ui
Version:
A modern, comprehensive, flexible design system and UI library. Connect DesignOps & DevOps. Quickly build beautiful React apps. Maintained by Douyin-fe team.
19 lines (18 loc) • 736 B
TypeScript
import React, { ReactNode, MouseEvent } from 'react';
import { TabType, TabSize, TabPosition } from './interface';
export interface TabItemProps {
tab?: ReactNode;
icon?: ReactNode;
size?: TabSize;
type?: TabType;
tabPosition?: TabPosition;
selected?: boolean;
closable?: boolean;
disabled?: boolean;
itemKey?: string;
handleKeyDown?: (event: React.KeyboardEvent, itemKey: string, closable: boolean) => void;
deleteTabItem?: (tabKey: string, event: MouseEvent<Element>) => void;
onClick?: (itemKey: string, e: MouseEvent<Element>) => void;
}
declare const ForwardTabItem: React.ForwardRefExoticComponent<TabItemProps & React.RefAttributes<HTMLDivElement>>;
export default ForwardTabItem;