amis-rpc-design/node_modules/rc-tabs/lib/TabNavList/TabNode.d.ts
2023-10-07 19:42:30 +08:00

20 lines
886 B
TypeScript

import * as React from 'react';
import type { EditableConfig, Tab } from '../interface';
export interface TabNodeProps {
id: string;
prefixCls: string;
tab: Tab;
active: boolean;
closable?: boolean;
editable?: EditableConfig;
onClick?: (e: React.MouseEvent | React.KeyboardEvent) => void;
onResize?: (width: number, height: number, left: number, top: number) => void;
renderWrapper?: (node: React.ReactElement) => React.ReactElement;
removeAriaLabel?: string;
removeIcon?: React.ReactNode;
onFocus: React.FocusEventHandler;
style?: React.CSSProperties;
}
declare function TabNode({ prefixCls, id, active, tab: { key, label, disabled, closeIcon }, closable, renderWrapper, removeAriaLabel, editable, onClick, onFocus, style, }: TabNodeProps): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
export default TabNode;