@floating-ui/react-dom
Version:
Floating UI for React DOM
7 lines (6 loc) • 323 B
TypeScript
import type { ReferenceType, UseFloatingOptions, UseFloatingReturn } from './types';
/**
* Provides data to position a floating element.
* @see https://floating-ui.com/docs/useFloating
*/
export declare function useFloating<RT extends ReferenceType = ReferenceType>(options?: UseFloatingOptions): UseFloatingReturn<RT>;