react-elegant-ui
Version:
Elegant UI components, made by BEM best practices for react
18 lines (17 loc) • 409 B
TypeScript
import { Modifier } from '@popperjs/core';
export type ApplyMaxHeightOptions = {
/**
* User defined height limit
*/
maxHeight?: number;
/**
* Indent from viewport edge
*
* @default 16
*/
padding?: number;
};
/**
* Modifier to set optimal height of popup within viewport
*/
export declare const applyMaxHeight: Modifier<'applyMaxHeight', ApplyMaxHeightOptions>;