UNPKG

1.18 kBTypeScriptView Raw
1import type { AlignType, BuildInPlacements } from '@rc-component/trigger/lib/interface';
2import * as React from 'react';
3import type { Placement, RenderDOMFunc } from './BaseSelect';
4export interface RefTriggerProps {
5 getPopupElement: () => HTMLDivElement;
6}
7export interface SelectTriggerProps {
8 prefixCls: string;
9 children: React.ReactElement;
10 disabled: boolean;
11 visible: boolean;
12 popupElement: React.ReactElement;
13 animation?: string;
14 transitionName?: string;
15 placement?: Placement;
16 builtinPlacements?: BuildInPlacements;
17 dropdownStyle: React.CSSProperties;
18 dropdownClassName: string;
19 direction: string;
20 dropdownMatchSelectWidth?: boolean | number;
21 dropdownRender?: (menu: React.ReactElement) => React.ReactElement;
22 getPopupContainer?: RenderDOMFunc;
23 dropdownAlign: AlignType;
24 empty: boolean;
25 getTriggerDOMNode: (node: HTMLElement) => HTMLElement;
26 onPopupVisibleChange?: (visible: boolean) => void;
27 onPopupMouseEnter: () => void;
28}
29declare const RefSelectTrigger: React.ForwardRefExoticComponent<SelectTriggerProps & React.RefAttributes<RefTriggerProps>>;
30export default RefSelectTrigger;