@antadesign/anta
    Preparing search index...

    Type Alias MenuItemActionMode

    type MenuItemActionMode = {
        href?: never;
        target?: never;
        rel?: never;
        download?: never;
        ping?: never;
        submenu?: boolean;
        selectionIndicator?: "checkbox" | "radio" | "check" | "switch";
        indeterminate?: boolean;
        indicator?: React.ReactNode;
    }
    Index
    href?: never
    target?: never
    rel?: never
    download?: never
    ping?: never
    submenu?: boolean

    Marks this item as a submenu parent: adds the trailing chevron and aria-haspopup="menu". Nest the flyout as a <Menu> child.

    selectionIndicator?: "checkbox" | "radio" | "check" | "switch"

    Turn the row into a checkable item, driven by selected (the row stays the control and carries aria-checked):

    • 'checkbox' → role="menuitemcheckbox", a leading passive <a-checkbox> (before icon); the tint is dropped (the box carries state).
    • 'radio' → role="menuitemradio", a leading passive <a-radio>; tint dropped.
    • 'check' → role="menuitemradio", a trailing check glyph on the selected row and the background tint (the canonical single-select look).
    • 'switch' → role="menuitemcheckbox", a trailing passive <a-switch>; selecting the row keeps its menu open. Omit for a plain row (the default).
    indeterminate?: boolean

    Only meaningful with selectionIndicator="checkbox": render the box in the mixed state (aria-checked="mixed") — e.g. a "Select all" row when some but not all of its options are selected.

    indicator?: React.ReactNode

    Replace the built-in selection-indicator visual with your own node, rendered at the leading edge (where the checkbox / radio sit). Pair with selectionIndicator to keep the semantics — the row stays the control and carries role + aria-checked; only the drawn mark changes. Suppresses the built-in checkbox / radio and the trailing check glyph. The node is made passive (aria-hidden, no pointer events) so the row receives the click.