UnreviewedOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptional UnreviewedkeyReact/Preact reconciliation key when rendered inside a list.
Optional UnreviewedidHTML id attribute.
Optional UnreviewedclassHTML class attribute (standard DOM).
Optional UnreviewedclassReact/Preact-style class name. Alias for class.
Optional UnreviewedstyleInline styles applied to the element.
OptionalchildrenOptional UnreviewedslotAssigns the element to a named <slot> (e.g. slot="title").
Optional UnreviewedtabTab order. Set to 0 to make the element keyboard-focusable.
Optional UnrevieweddisabledDisabled state. Presence-based ('' on, omit off).
Optional UnreviewedselectedMarks the item as selected — a persistent background tint (the same
resting look a pressed row shows), for building single- / multi-select
menus. Presence-based ('' on, omit off).
Optional UnreviewedtoneSemantic tone. Colors the label, icon, and hover/selected tint. A named tone,
or any literal CSS color for a one-off custom tone (resolved through
--menu-item-tone-source, hue/chroma kept, lightness pinned to the brand
text). 'neutral' (the default) is the same as omitting it.
Optional Unrevieweddata-Keep the menu open after this item is chosen (toggles / multi-select),
instead of the default close-on-select. Presence-based ('' on, omit
off). The universal form is data-menu-open (works on any element).
Optional UnreviewedsubmenuMarks this item as a submenu parent (renders a chevron, opens a nested
<a-menu>). Presence-based ('' on, omit off).
Optional UnreviewedroleARIA role — 'menuitem'.
Optionalaria-Optional Unreviewedaria-Available for hand-authored markup, but the MenuItem wrapper does NOT set
it: keeping it in sync would need a light-DOM mutation (desyncs the
worker-thread reactive model) or reactive state for one attribute, and a
static value would lie once the submenu opens. aria-haspopup announces the
submenu; the open branch's visual rides the nested <a-menu>'s :state(open).
Optionalaria-Optional UnreviewedonmenuselectFired when this row is genuinely activated (click / Enter / Space). The
parent <a-menu> owns click delegation and dispatches this — already
filtered so it never fires on a submenu parent or from a bubbled child
click — so the MenuItem wrapper's onSelect needs no DOM traversal. It's
a MouseEvent, carrying the modifier keys (e.g. altKey). All-lowercase so
React/Preact bind it to the CustomEvent.
Attributes for the
<a-menu-item>custom element. For the typed JSX wrapper useMenuItemfrom@antadesign/anta.