20 lines
856 B
TypeScript
20 lines
856 B
TypeScript
import * as React from 'react';
|
|
import { AlignType } from 'rc-trigger/lib/interface';
|
|
declare type Placement = 'bottomLeft' | 'bottomRight' | 'topLeft' | 'topRight';
|
|
export interface PickerTriggerProps {
|
|
prefixCls: string;
|
|
visible: boolean;
|
|
popupElement: React.ReactElement;
|
|
popupStyle?: React.CSSProperties;
|
|
children: React.ReactElement;
|
|
dropdownClassName?: string;
|
|
transitionName?: string;
|
|
getPopupContainer?: (node: HTMLElement) => HTMLElement;
|
|
dropdownAlign?: AlignType;
|
|
range?: boolean;
|
|
popupPlacement?: Placement;
|
|
direction?: 'ltr' | 'rtl';
|
|
}
|
|
declare function PickerTrigger({ prefixCls, popupElement, popupStyle, visible, dropdownClassName, dropdownAlign, transitionName, getPopupContainer, children, range, popupPlacement, direction, }: PickerTriggerProps): JSX.Element;
|
|
export default PickerTrigger;
|