import { Accessibility } from '../../types'; import { PopupBehaviorProps } from '../Popup/popupBehavior'; /** * @description * Implements ARIA [MenuButton](https://www.w3.org/TR/wai-aria-practices/#menubutton) design pattern. * Adds attribute 'aria-controls=menu-id' based on the property 'open' to 'trigger' slot. * * @specification * Adds attribute 'aria-haspopup=true' to 'trigger' slot if 'contextMenu' property is not set. * Adds attribute 'tabIndex=-1' based on the property 'open' to 'trigger' slot. * Adds attribute 'aria-expanded=true' based on the property 'open' to 'trigger' slot. * Adds attribute 'id=trigger-id' based on the property 'triggerId' to 'trigger' slot. * Adds attribute 'id=menu-id' based on the property 'menuId' to 'menu' slot. * Adds attribute 'aria-labelledby=trigger-id' based on the property 'triggerId' to 'menu' slot. */ export declare const menuButtonBehavior: Accessibility; export interface MenuButtonBehaviorProps extends PopupBehaviorProps { /** Defines ID of the menu element. */ menuId?: string; /** Defines ID of the trigger element. */ triggerId?: string; /** Defines whether popup is displayed. */ open?: boolean; /** Determines if the MenuButton behaves as context menu */ contextMenu?: boolean; }