UNPKG

@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.

12 lines 455 B
import type { HandleClose } from "./hooks/useHover.js"; export interface SafePolygonOptions { buffer?: number; blockPointerEvents?: boolean; requireIntent?: boolean; } /** * Generates a safe polygon area that the user can traverse without closing the * floating element once leaving the reference element. * @see https://floating-ui.com/docs/useHover#safepolygon */ export declare function safePolygon(options?: SafePolygonOptions): HandleClose;