UNPKG

@base-ui/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.

38 lines 1.26 kB
import * as React from 'react'; import type { BaseUIComponentProps } from "../../utils/types.js"; import type { TransitionStatus } from "../../utils/useTransitionStatus.js"; import { Align, Side } from "../../utils/useAnchorPositioning.js"; /** * A container for the navigation menu contents. * Renders a `<nav>` element. * * Documentation: [Base UI Navigation Menu](https://base-ui.com/react/components/navigation-menu) */ export declare const NavigationMenuPopup: React.ForwardRefExoticComponent<Omit<NavigationMenuPopupProps, "ref"> & React.RefAttributes<HTMLElement>>; export interface NavigationMenuPopupState { /** * If `true`, the popup is open. */ open: boolean; /** * The transition status of the popup. */ transitionStatus: TransitionStatus; /** * The side of the anchor the popup is positioned on. */ side: Side; /** * The alignment of the popup relative to the anchor. */ align: Align; /** * Whether the anchor element is hidden. */ anchorHidden: boolean; } export interface NavigationMenuPopupProps extends BaseUIComponentProps<'nav', NavigationMenuPopup.State> {} export declare namespace NavigationMenuPopup { type State = NavigationMenuPopupState; type Props = NavigationMenuPopupProps; }