UNPKG

610 BTypeScriptView Raw
1import * as React from 'react';
2import { ListContextValue } from '../useList/ListContext';
3import { MenuItemMetadata } from '../useMenuItem';
4import { CompoundComponentContextValue } from '../useCompound';
5export type MenuProviderValue = CompoundComponentContextValue<string, MenuItemMetadata> & ListContextValue<string>;
6export interface MenuProviderProps {
7 value: MenuProviderValue;
8 children: React.ReactNode;
9}
10/**
11 * Sets up the contexts for the underlying MenuItem components.
12 *
13 * @ignore - do not document.
14 */
15export declare function MenuProvider(props: MenuProviderProps): React.JSX.Element;