UNPKG

1.12 kBTypeScriptView Raw
1import * as React from 'react';
2import type { TriggerProps } from 'rc-trigger';
3import type { AnimationType, AlignType, BuildInPlacements, ActionType } from 'rc-trigger/lib/interface';
4export interface DropdownProps extends Pick<TriggerProps, 'getPopupContainer' | 'children' | 'mouseEnterDelay' | 'mouseLeaveDelay' | 'onPopupAlign' | 'builtinPlacements'> {
5 minOverlayWidthMatchTrigger?: boolean;
6 arrow?: boolean;
7 onVisibleChange?: (visible: boolean) => void;
8 onOverlayClick?: (e: Event) => void;
9 prefixCls?: string;
10 transitionName?: string;
11 overlayClassName?: string;
12 openClassName?: string;
13 animation?: AnimationType;
14 align?: AlignType;
15 overlayStyle?: React.CSSProperties;
16 placement?: string;
17 placements?: BuildInPlacements;
18 overlay?: (() => React.ReactElement) | React.ReactElement;
19 trigger?: ActionType | ActionType[];
20 alignPoint?: boolean;
21 showAction?: ActionType[];
22 hideAction?: ActionType[];
23 visible?: boolean;
24}
25declare const _default: React.ForwardRefExoticComponent<DropdownProps & React.RefAttributes<unknown>>;
26export default _default;
27
\No newline at end of file