UNPKG

react-elegant-ui

Version:

Elegant UI components, made by BEM best practices for react

15 lines (14 loc) 475 B
import { Modifier, StateRects } from '@popperjs/core'; export type Options = { /** * List of rects names to observe */ rects?: Array<keyof StateRects>; }; /** * Modifier to auto correction of position * * This modifier compare rects with previous and force update if it is not equal * It fix cases when right after changes popup have wrong position and should recalculate it */ export declare const autoCorrection: Modifier<'autoCorrection', Options>;