/** * Floating — shared Portal + fixed-positioning helper for the overlay * primitives (DropdownMenu, Popover, Select). Renders `children` into * the nearest Veryfront UI scope (or `document.body` when no scope exists), * positioned relative to `anchorRef`, so the surface escapes a primitive's * clipping container while retaining scoped design tokens. Anchors below the * trigger (flips above when it would overflow), clamps to the viewport, follows * scroll/resize, and dismisses on outside-click / `Escape`. * * @module react/components/ui/floating */ import * as React from "react"; export type FloatingDismissReason = "escape" | "pointer"; /** Props accepted by ``. */ export interface FloatingProps extends React.HTMLAttributes { /** Element the surface is positioned against (usually the trigger element). */ anchorRef: React.RefObject; /** Current anchor value when the owner tracks callback-ref replacement. */ anchorElement?: HTMLElement | null; open: boolean; /** Horizontal edge to align to. */ align?: "start" | "end"; /** Called on outside-click or `Escape`. */ onDismiss: (reason: FloatingDismissReason) => void; /** Give the surface at least the anchor's width (Select). */ matchTriggerWidth?: boolean; /** Move focus into the surface after it is portalled. */ initialFocus?: true | string; /** Focus target for Escape dismissal when the positioning anchor is a wrapper. */ returnFocusRef?: React.RefObject; /** Consumer ref for the portalled surface node. */ contentRef?: React.Ref; } /** Portal a positioned surface anchored to `anchorRef`. */ export declare function Floating({ anchorRef, anchorElement, open, align, onDismiss, matchTriggerWidth, initialFocus, returnFocusRef, contentRef, style, children, ...rest }: FloatingProps): React.ReactElement | null; //# sourceMappingURL=floating.d.ts.map