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.

14 lines (13 loc) 574 B
import * as React from 'react'; import type { useMenuRoot } from './useMenuRoot.js'; export interface MenuRootContext extends useMenuRoot.ReturnValue { disabled: boolean; nested: boolean; parentContext: MenuRootContext | undefined; typingRef: React.RefObject<boolean>; modal: boolean; } export declare const MenuRootContext: React.Context<MenuRootContext | undefined>; declare function useMenuRootContext(optional?: false): MenuRootContext; declare function useMenuRootContext(optional: true): MenuRootContext | undefined; export { useMenuRootContext };