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.

30 lines 1.14 kB
import * as React from 'react'; import type { BaseUIComponentProps } from "../../utils/types.js"; import { TransitionStatus } from "../../utils/useTransitionStatus.js"; /** * A container for the content of the navigation menu item that is moved into the popup * when the item is active. * Renders a `<div>` element. * * Documentation: [Base UI Navigation Menu](https://base-ui.com/react/components/navigation-menu) */ export declare const NavigationMenuContent: React.ForwardRefExoticComponent<NavigationMenuContentProps & React.RefAttributes<HTMLDivElement>>; export interface NavigationMenuContentState { /** * If `true`, the component is open. */ open: boolean; /** * The transition status of the component. */ transitionStatus: TransitionStatus; /** * The direction of the activation. */ activationDirection: 'left' | 'right' | 'up' | 'down' | null; } export interface NavigationMenuContentProps extends BaseUIComponentProps<'div', NavigationMenuContent.State> {} export declare namespace NavigationMenuContent { type State = NavigationMenuContentState; type Props = NavigationMenuContentProps; }