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 UnreviewedplacementPreferred placement relative to the trigger; auto-flips / clamps.
Defaults to 'bottom-start'. right / left place the menu beside the trigger.
Optional UnreviewedcontextOpen on right-click of the trigger region, positioned at the pointer.
Presence-based ('' on, omit off).
Optional UnreviewedcoordOpen at the pointer coordinates instead of aligned to the trigger box.
Presence-based ('' on, omit off).
Optional UnreviewednohoverSubmenus only (an <a-menu> nested inside an <a-menu-item> — detected
from that structure; ignored on a root menu). Submenus open on hover by
default; this opts out, making the submenu click-only. Presence-based
('' on, omit off).
Optional UnreviewedroundRound: container softens to a 20px radius and its items go fully round. A
length value (round="12px") tunes the container radius only (items stay
pills). Presence-based for the boolean form.
Optional UnreviewedoffsetGap in pixels between the trigger and the menu. Defaults to 4.
Optional UnreviewedautowidthSize the menu to its content instead of flooring its width to the trigger.
By default a root menu is never narrower than its trigger; autowidth drops
that floor (min-width falls back to --menu-min-width) for a content menu
under a wide trigger, e.g. InputDate's calendar below a full-width field.
Presence-based ('' on, omit off).
Optional UnreviewedstateControlled open state ('open' / 'closed'). Omit for uncontrolled;
present → visibility follows this value, and the element never writes it
(the consumer owns it). Listen to statechange to keep it in sync. See
STATEFUL-COMPONENTS.md.
Optional UnreviewedonstatechangeState-change event — cancelable, fired before applying, with
detail: { next, prev } in the 'open'|'closed' vocabulary (plus optional
coord / originEvent). All-lowercase so React/Preact bind it to the
element's statechange CustomEvent. The Menu wrapper exposes this as the
onStateChange prop.
Optional UnreviewedonactivedescendantCombobox-mode cursor report for custom fields and observers. Fires when
the active option changes, with detail.id containing an authored option
ID or null. Built-in Anta Inputs receive a direct ARIA element relation.
All-lowercase so React/Preact bind it to the CustomEvent.
Optional Unreviewedstop-Contain events so they don't bubble out of the menu surface to ancestor /
document handlers. Space- or comma-separated event names
(stop-propagation="click pointerdown"); a bare / empty attribute defaults to
click. Menu-item / data-menu-close selections are always contained; this
extends containment to whole event types.
Optional UnreviewedroleARIA role — the JSX wrapper sets this to 'menu'.
Optionalaria-
Attributes for the
<a-menu>custom element. Placed immediately after the trigger it anchors to (root menu), or nested inside an<a-menu-item>(submenu). For the typed JSX wrapper useMenufrom@antadesign/anta.