@saleor/macaw-ui
Version:
Saleor's UI component library
19 lines (17 loc) • 633 B
TypeScript
import { UseFloatingReturn, ReferenceType } from '@floating-ui/react-dom';
interface UseFloatingProps {
zIndexValue?: number;
shouldUpdate: boolean;
}
export declare const useFloating: <T extends ReferenceType>({ zIndexValue, shouldUpdate, }: UseFloatingProps) => {
floatingStyles: import('react').CSSProperties & {
zIndex: number;
};
refs: {
reference: import('react').MutableRefObject<T | null>;
floating: import('react').MutableRefObject<HTMLElement | null>;
setReference: (node: T | null) => void;
setFloating: (node: HTMLElement | null) => void;
};
};
export {};