@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.
26 lines • 976 B
TypeScript
import * as React from 'react';
import type { BaseUIComponentProps } from "../../utils/types.js";
import { useAnchorPositioning, type Align, type Side } from "../../utils/useAnchorPositioning.js";
/**
* Positions the navigation menu against the currently active trigger.
* Renders a `<div>` element.
*
* Documentation: [Base UI Navigation Menu](https://base-ui.com/react/components/navigation-menu)
*/
export declare const NavigationMenuPositioner: React.ForwardRefExoticComponent<NavigationMenuPositioner.Props & React.RefAttributes<HTMLDivElement>>;
export declare namespace NavigationMenuPositioner {
interface State {
/**
* Whether the navigation menu is currently open.
*/
open: boolean;
side: Side;
align: Align;
anchorHidden: boolean;
/**
* Whether CSS transitions should be disabled.
*/
instant: boolean;
}
interface Props extends useAnchorPositioning.SharedParameters, BaseUIComponentProps<'div', State> {}
}