UNPKG

@uifabric/utilities

Version:

Fluent UI React utilities for building components.

25 lines (24 loc) 778 B
/** * Detects whether an element's content has horizontal overflow * * @public * @param element - Element to check for overflow * @returns True if element's content overflows */ export declare function hasHorizontalOverflow(element: HTMLElement): boolean; /** * Detects whether an element's content has vertical overflow * * @public * @param element - Element to check for overflow * @returns True if element's content overflows */ export declare function hasVerticalOverflow(element: HTMLElement): boolean; /** * Detects whether an element's content has overflow in any direction * * @public * @param element - Element to check for overflow * @returns True if element's content overflows */ export declare function hasOverflow(element: HTMLElement): boolean;