UNPKG

its-just-ui

Version:

ITS Just UI - The easiest and best React UI component library. Modern, accessible, and customizable components built with TypeScript and Tailwind CSS. Simple to use, production-ready components for building beautiful user interfaces with ease.

20 lines (18 loc) 661 B
import { PopoverPosition } from './types'; export interface PopoverRect { width: number; height: number; top: number; left: number; } export interface PopoverPositionResult { top: number; left: number; actualPosition: PopoverPosition; arrowPosition?: { top?: number; left?: number; transform?: string; }; } export declare function calculatePopoverPosition(triggerElement: HTMLElement, contentElement: HTMLDivElement, preferredPosition: PopoverPosition, hasArrow?: boolean, offset?: number, offsetTop?: number, offsetBottom?: number, offsetLeft?: number, offsetRight?: number): PopoverPositionResult;