UNPKG

@gluestack-ui/core

Version:

Universal UI components for React Native, Expo, and Next.js

21 lines 767 B
import { HTMLAttributes, RefObject } from 'react'; import { PlacementAxis, PositionProps } from '@react-types/overlays'; interface AriaPositionProps extends PositionProps { boundaryElement?: HTMLElement; targetRef: RefObject<HTMLElement>; overlayRef: RefObject<HTMLElement>; scrollRef?: RefObject<HTMLElement>; shouldUpdatePosition?: boolean; onClose?: () => void; shouldOverlapWithTrigger?: boolean; } interface PositionAria { overlayProps: HTMLAttributes<Element>; arrowProps: HTMLAttributes<Element>; placement: PlacementAxis; updatePosition(): void; isFlipped: boolean; } export declare function useOverlayPosition(props: AriaPositionProps): PositionAria; export {}; //# sourceMappingURL=useOverlayPosition.d.ts.map