Skip to content

Find what you need, instantly

Search components, ARIA roles & attributes, and WCAG criteria.

All roles

menuitem

Widget role

An individual command within a menu or menubar that performs an action when activated. It's reached with the arrow keys rather than Tab, and typically closes the menu when chosen. For options that hold a state, use menuitemcheckbox or menuitemradio instead.

Used on
An option within a menu or menubar.
Accessible name
From the item's child text content.
Used by components
Example
role="menuitem"
<li role="menuitem" tabindex="-1">Duplicate</li>
See a live, tested example on the Menu & Menu Button page