ARIA Widget Roles
ARIA role: menuitemradio
A mutually exclusive choice within a menu group. Requires aria-checked, menu context and mutual exclusion within the relevant group. Static structure only. Explicit roles do not implement visual presentation, interaction or focus management; verify allowed role/element combinations in ARIA in HTML. Accessibility exposure varies with browser, platform and assistive technology. Test relevant combinations; rendering is not proof of accessibility.
Formal Syntax & Structure
html syntaxhtml
role="menuitemradio"Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| role | token | Explicit role token menuitemradio; use only where allowed. Omit when native semantics match. |
| aria-checked | tristate | Required for this custom role unless equivalent host semantics apply. Reports whether a checkable widget is checked, unchecked, or partially checked. Mixed applies only to roles supporting tri-state behavior; not radio or switch. Keep this in sync with the real state. Native checkbox checked and indeterminate properties are preferable where applicable. Values: true, false, mixed, undefined. |
Working Example
Example Snippethtml
<div role="menu" aria-label="Zoom"> <div role="menuitemradio" aria-checked="true" tabindex="0">100%</div> <div role="menuitemradio" aria-checked="false" tabindex="-1">200%</div></div>