UNPKG

868 BTypeScriptView Raw
1import * as React from 'react';
2import type { AlignType } from '@rc-component/trigger/lib/interface';
3type Placement = 'bottomLeft' | 'bottomRight' | 'topLeft' | 'topRight';
4export type PickerTriggerProps = {
5 prefixCls: string;
6 visible: boolean;
7 popupElement: React.ReactElement;
8 popupStyle?: React.CSSProperties;
9 children: React.ReactElement;
10 dropdownClassName?: string;
11 transitionName?: string;
12 getPopupContainer?: (node: HTMLElement) => HTMLElement;
13 dropdownAlign?: AlignType;
14 range?: boolean;
15 popupPlacement?: Placement;
16 direction?: 'ltr' | 'rtl';
17};
18declare function PickerTrigger({ prefixCls, popupElement, popupStyle, visible, dropdownClassName, dropdownAlign, transitionName, getPopupContainer, children, range, popupPlacement, direction, }: PickerTriggerProps): React.JSX.Element;
19export default PickerTrigger;