@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.
22 lines • 779 B
TypeScript
import * as React from 'react';
/**
* A portal element that moves the popup to a different part of the DOM.
* By default, the portal element is appended to `<body>`.
*
* Documentation: [Base UI Navigation Menu](https://base-ui.com/react/components/navigation-menu)
*/
export declare function NavigationMenuPortal(props: NavigationMenuPortal.Props): React.JSX.Element | null;
export declare namespace NavigationMenuPortal {
interface Props {
children?: React.ReactNode;
/**
* Whether to keep the portal mounted in the DOM while the popup is hidden.
* @default false
*/
keepMounted?: boolean;
/**
* A parent element to render the portal element into.
*/
container?: HTMLElement | null | React.RefObject<HTMLElement | null>;
}
}