tdesign-react
Version:
TDesign Component for React
14 lines (13 loc) • 526 B
TypeScript
import { type Instance } from '@popperjs/core';
import type { AttachNode, TNode } from '../common';
import type { TdPopupProps } from './type';
export interface PopupPluginApi {
config: TdPopupProps;
}
export interface OverlayProps extends TdPopupProps {
triggerEl: AttachNode;
renderCallback: (instance: HTMLElement) => void;
}
export type PluginMethod = (triggerEl: AttachNode, content: TNode, popupProps?: TdPopupProps) => Promise<Instance>;
declare const PopupPlugin: PluginMethod;
export default PopupPlugin;