@base-ui-components/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.
10 lines • 419 B
TypeScript
import type { FloatingRootContext, OpenChangeReason } from "../types.js";
export interface UseFloatingRootContextOptions {
open?: boolean;
onOpenChange?: (open: boolean, event?: Event, reason?: OpenChangeReason) => void;
elements: {
reference: Element | null;
floating: HTMLElement | null;
};
}
export declare function useFloatingRootContext(options: UseFloatingRootContextOptions): FloatingRootContext;