UNPKG

@atlaskit/spotlight

Version:

A spotlight introduces users to points of interest, from focused messages to multi-step tours.

12 lines (11 loc) 418 B
import type { PositionArea } from '../../types'; /** * Future improvements to this might be to check if the target resizes with: * ``` * const ro = new ResizeObserver(read); * ro.observe(targetRef.current); * ``` * * No need to do this for the PopoverContent, as it has static height/width. */ export declare const usePositionArea: (ref: React.RefObject<HTMLElement>) => PositionArea | 'none' | undefined;