@zendeskgarden/container-menu
Version:
Containers relating to Menu in the Garden Design System
9 lines (8 loc) • 587 B
TypeScript
/**
* Copyright Zendesk, Inc.
*
* Use of this source code is governed under the Apache License, Version 2.0
* found at http://www.apache.org/licenses/LICENSE-2.0.
*/
import { IUseMenuProps, IUseMenuReturnValue } from './types';
export declare const useMenu: <T extends HTMLElement = HTMLElement, M extends HTMLElement = HTMLElement>({ defaultExpanded, defaultFocusedValue, document: documentProp, focusedValue, idPrefix, isExpanded, items: rawItems, menuRef, restoreFocus, rtl, selectedItems, triggerRef, window: windowProp, onChange }: IUseMenuProps<T, M>) => IUseMenuReturnValue;