@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.
25 lines • 960 B
TypeScript
import * as React from 'react';
import type { BaseUIComponentProps } from "../../utils/types.js";
import type { TransitionStatus } from "../../utils/useTransitionStatus.js";
/**
* A backdrop for the navigation menu popup.
* Renders a `<div>` element.
*
* Documentation: [Base UI Navigation Menu](https://base-ui.com/react/components/navigation-menu)
*/
export declare const NavigationMenuBackdrop: React.ForwardRefExoticComponent<NavigationMenuBackdropProps & React.RefAttributes<HTMLDivElement>>;
export interface NavigationMenuBackdropState {
/**
* If `true`, the popup is open.
*/
open: boolean;
/**
* The transition status of the popup.
*/
transitionStatus: TransitionStatus;
}
export interface NavigationMenuBackdropProps extends BaseUIComponentProps<'div', NavigationMenuBackdrop.State> {}
export declare namespace NavigationMenuBackdrop {
type State = NavigationMenuBackdropState;
type Props = NavigationMenuBackdropProps;
}