UNPKG

@base-ui/react

Version:

Base UI is a library of headless ('unstyled') React components and low-level hooks. You gain complete control over your app's CSS and accessibility features.

6 lines 655 B
export type ScrollAxis = 'horizontal' | 'vertical'; export declare function isScrollableY(element: HTMLElement, allowOverflowIntent?: boolean): boolean; export declare function isScrollableX(element: HTMLElement, allowOverflowIntent?: boolean): boolean; export declare function isScrollable(element: HTMLElement, axis: ScrollAxis, allowOverflowIntent?: boolean): boolean; export declare function hasScrollableAncestor(target: HTMLElement, root: HTMLElement, axes: ScrollAxis[]): boolean; export declare function findScrollableTouchTarget(target: EventTarget | null, root: HTMLElement, axis?: ScrollAxis, allowOverflowIntent?: boolean): HTMLElement | null;