UNPKG

ultra-design

Version:
15 lines (14 loc) 570 B
import React from 'react'; import { PositionRect } from './trigger'; export declare type Placement = 'topLeft' | 'top' | 'topRight' | 'rightTop' | 'right' | 'rightBottom' | 'bottomRight' | 'bottom' | 'bottomLeft' | 'leftBottom' | 'left' | 'leftTop'; export declare const defaultTriggerPosition: { top: string; left: string; transform: string; }; export interface TriggerPosition { top: string; left: string; transform: string; } export declare const getPosition: (placement: Placement, rect: PositionRect, offset: number) => React.CSSProperties;