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.

16 lines (15 loc) 524 B
import { FloatingEvents } from '@floating-ui/react'; export declare function useMenuPopup(parameters: useMenuPopup.Parameters): useMenuPopup.ReturnValue; export declare namespace useMenuPopup { interface Parameters { /** * The FloatingEvents instance of the menu's root. */ menuEvents: FloatingEvents; /** * Callback to set the open state of the menu. */ setOpen: (open: boolean, event: Event | undefined) => void; } type ReturnValue = void; }