Skip to main content

@microsoft/fast-foundation > MenuItem

A Switch Custom HTML Element. Implements ARIA menuitem, ARIA menuitemcheckbox, or ARIA menuitemradio.

checked-indicator - The checked indicator

radio-indicator - The radio indicator

start - Content which can be provided before the menu item content

end - Content which can be provided after the menu item content

  • The default slot for menu item content

expand-collapse-indicator - The expand/collapse indicator

submenu - Used to nest menu's within menu items

input-container - The element representing the visual checked or radio indicator

checkbox - The element wrapping the menuitemcheckbox indicator

radio - The element wrapping the menuitemradio indicator

content - The element wrapping the menu item content

expand-collapse-glyph-container - The element wrapping the expand collapse element

expand-collapse - The expand/collapse element

submenu-region - The container for the submenu, used for positioning

expanded-change - Fires a custom 'expanded-change' event when the expanded state changes

change - Fires a custom 'change' event when a non-submenu item with a role of menuitemcheckbox, menuitemradio, or menuitem is invoked

Signature:
export declare class MenuItem extends FoundationElement 

Properties

PropertyModifiersTypeDescription
checkedbooleanThe checked value of the element.
disabledbooleanThe disabled state of the element.
expandedbooleanThe expanded state of the element.
roleMenuItemRoleThe role of the element.