@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.
28 lines (27 loc) • 917 B
TypeScript
import * as React from 'react';
import type { BaseUIComponentProps } from '../../utils/types.js';
import type { TransitionStatus } from '../../utils/useTransitionStatus.js';
/**
* An overlay displayed beneath the menu popup.
* Renders a `<div>` element.
*
* Documentation: [Base UI Menu](https://base-ui.com/react/components/menu)
*/
declare const MenuBackdrop: React.ForwardRefExoticComponent<MenuBackdrop.Props & React.RefAttributes<HTMLDivElement>>;
declare namespace MenuBackdrop {
interface State {
/**
* Whether the menu is currently open.
*/
open: boolean;
transitionStatus: TransitionStatus;
}
interface Props extends BaseUIComponentProps<'div', State> {
/**
* Whether to keep the HTML element in the DOM while the menu is hidden.
* @default false
*/
keepMounted?: boolean;
}
}
export { MenuBackdrop };