{
  "timestamp": "2026-11-19T09:33:56",
  "compiler": {
    "name": "@stencil/core",
    "version": "4.45.4",
    "typescriptVersion": "5.8.3"
  },
  "storybook": "https://magma-design-system.github.io/magma/storybook/",
  "studio": "https://magma-design-system.github.io/magma/studio/",
  "components": [
    {
      "filePath": "src/components/mds-radial-menu-item/mds-radial-menu-item.tsx",
      "encapsulation": "shadow",
      "tag": "mds-radial-menu-item",
      "docs": "",
      "docsTags": [
        {
          "name": "parent",
          "text": "mds-radial-menu"
        }
      ],
      "usage": {
        "1. Description": "The `<mds-radial-menu-item>` web component is a single actionable spoke of the [`<mds-radial-menu>`](../mds-radial-menu/AGENTS.md) compound. It wraps an `<mds-button>` (rendered as a circular icon button) plus an optional `<mds-tooltip>`, and is positioned along the menu arc by its parent.\n\n#### Semantic Behavior\n\n- **Compound child only**: Must be a direct slot child of `<mds-radial-menu>`; it is not used standalone, and the radial menu's `item` slot should contain only `<mds-radial-menu-item>` elements.\n- **Parent-driven sizing and ordering**: The parent overrides each item's `size` to match the menu and assigns its angular position, so an item's `size` prop is effectively a fallback the menu normalizes.\n- **Open/close animation**: Items are hidden until the parent menu is opened, then translate outward along the arc - the item itself carries no `opened` state.\n- **Conditional tooltip**: An `<mds-tooltip>` is rendered only when `tooltip` is set.\n- **Accessibility**: The `tooltip` string is also used as the inner button's accessible name, so it doubles as the label of the icon-only action.\n- **No own events**: Activation is the inner `<mds-button>`'s native click, which the consumer wires up directly on the element.\n\n#### Properties & Visual Configurations\n\nThe shared `variant` / `tone` / `size` ladders are defined in [`agents/variants.md`](../../../../agents/variants.md); they are forwarded to the inner `<mds-button>`. Defaults are deliberately distinct from a standalone button: `variant` defaults to `dark` and `tone` to `weak` so items read as secondary spokes against the parent's trigger button (which defaults to the `strong` tone). Set `icon` to the glyph that represents the action - it is the primary content of each item since the label lives only in the `tooltip`. Use `tooltip` both to describe the action on hover and to supply the accessible name; omit it only when the icon is unambiguous and labelled elsewhere. Prefer leaving `size` unset and letting the parent menu drive it for visual consistency across all spokes.\n",
        "2. Examples": "Correct and idiomatic ways to use the `<mds-radial-menu-item>` component, ordered from most common to most specialized. The examples assume a working knowledge of the variant / tone ladders documented in [`agents/variants.md`](../../../../agents/variants.md) and the shared component rules in [`agents/conventions.md`](../../../../agents/conventions.md).\n\n#### Basic Item with Icon and Tooltip\n\nThe canonical form. Always place `<mds-radial-menu-item>` as a direct child of [`<mds-radial-menu>`](../mds-radial-menu/AGENTS.md). Set `icon` to a slug from the Magma icon library and `tooltip` to the label of the action - it doubles as the inner button's accessible name.\n\n```html\n<mds-radial-menu>\n  <mds-radial-menu-item icon=\"mi/baseline/edit\" tooltip=\"Modifica\"></mds-radial-menu-item>\n</mds-radial-menu>\n```\n\n#### Multiple Items Around the Arc\n\nAdd one `<mds-radial-menu-item>` per spoke. The parent assigns each item its angular position automatically; order in the DOM controls the arc sequence.\n\n```html\n<mds-radial-menu opened>\n  <mds-radial-menu-item icon=\"mi/baseline/edit\"   tooltip=\"Modifica\"></mds-radial-menu-item>\n  <mds-radial-menu-item icon=\"mi/baseline/delete\" tooltip=\"Elimina\"></mds-radial-menu-item>\n  <mds-radial-menu-item icon=\"mi/baseline/share\"  tooltip=\"Condividi\"></mds-radial-menu-item>\n  <mds-radial-menu-item icon=\"mi/baseline/download\" tooltip=\"Scarica\"></mds-radial-menu-item>\n</mds-radial-menu>\n```\n\n#### Variant and Tone for Emphasis\n\nUse `variant` to convey the semantic meaning of the action and `tone` to control visual weight. The defaults (`variant=\"dark\"` + `tone=\"weak\"`) keep spokes visually subordinate to the trigger button, which defaults to `tone=\"strong\"`. Override them only when the action demands a different signal.\n\n```html\n<mds-radial-menu opened>\n  <!-- Default: neutral dark spoke -->\n  <mds-radial-menu-item icon=\"mi/baseline/share\" tooltip=\"Condividi\"></mds-radial-menu-item>\n\n  <!-- Destructive action: error variant -->\n  <mds-radial-menu-item\n    icon=\"mi/baseline/delete\"\n    tooltip=\"Elimina\"\n    variant=\"error\"\n    tone=\"strong\"\n  ></mds-radial-menu-item>\n\n  <!-- Primary call to action -->\n  <mds-radial-menu-item\n    icon=\"mi/baseline/save\"\n    tooltip=\"Salva\"\n    variant=\"primary\"\n    tone=\"strong\"\n  ></mds-radial-menu-item>\n</mds-radial-menu>\n```\n\n#### Listening for Activation\n\n`<mds-radial-menu-item>` emits no own events. Wire the native `click` event directly on the element - it bubbles from the inner `<mds-button>`.\n\n```html\n<mds-radial-menu>\n  <mds-radial-menu-item id=\"edit-item\" icon=\"mi/baseline/edit\" tooltip=\"Modifica\"></mds-radial-menu-item>\n</mds-radial-menu>\n\n<script>\n  document.querySelector('#edit-item').addEventListener('click', () => {\n    console.log('Modifica attivato');\n  });\n</script>\n```\n\n#### Item Without a Tooltip (Unambiguous Icon)\n\nOmit `tooltip` only when the icon is self-evident in context and the action is labelled elsewhere (for example, via a screen-reader landmark). Without `tooltip`, the inner button's accessible name falls back to the icon name (`add`), which names the icon, not the action - reserve this for cases where the icon is genuinely unambiguous.\n\n```html\n<mds-radial-menu opened>\n  <mds-radial-menu-item icon=\"mi/baseline/add\"></mds-radial-menu-item>\n</mds-radial-menu>\n```\n\n#### Styling a Spoke\n\n`<mds-radial-menu-item>` has no public CSS custom property and no shadow parts: how fast each spoke animates in and out is set by the component. Style a spoke with its `variant` and `tone` props (see Variant and Tone for Emphasis above); its size comes from the parent.\n\n```html\n<mds-radial-menu opened>\n  <mds-radial-menu-item icon=\"mi/baseline/star\" tooltip=\"Preferiti\" variant=\"primary\" tone=\"strong\"></mds-radial-menu-item>\n</mds-radial-menu>\n```\n",
        "3. Mistakes": "Common incorrect uses of `<mds-radial-menu-item>`. Each entry pairs the wrong form with the right one and a one-line reason. System-wide rules (boolean-as-string, shadow piercing, Tailwind color utilities, raw native event listening) live in [`agents/mistakes.md`](../../../../agents/mistakes.md) - they apply here too but are not repeated.\n\n#### Do Not Use Outside `<mds-radial-menu>`\n\n`<mds-radial-menu-item>` is a compound child; it relies on its parent to set angular position, size, and open/close animation. Rendering it standalone leaves it permanently hidden and incorrectly positioned.\n\n```html\n<!-- INCORRECT -->\n<mds-radial-menu-item icon=\"mi/baseline/edit\" tooltip=\"Modifica\"></mds-radial-menu-item>\n\n<!-- CORRECT -->\n<mds-radial-menu>\n  <mds-radial-menu-item icon=\"mi/baseline/edit\" tooltip=\"Modifica\"></mds-radial-menu-item>\n</mds-radial-menu>\n```\n\n#### Do Not Wrap Items in a Container Element\n\nThe parent queries direct slot children (`[slot=\"item\"]`) to assign positions and sizes. An intermediate wrapper breaks parent-child communication and the item never receives its angular placement.\n\n```html\n<!-- INCORRECT -->\n<mds-radial-menu>\n  <div>\n    <mds-radial-menu-item icon=\"mi/baseline/share\" tooltip=\"Condividi\"></mds-radial-menu-item>\n  </div>\n</mds-radial-menu>\n\n<!-- CORRECT -->\n<mds-radial-menu>\n  <mds-radial-menu-item icon=\"mi/baseline/share\" tooltip=\"Condividi\"></mds-radial-menu-item>\n</mds-radial-menu>\n```\n\n#### Do Not Put Text or HTML in a Slot\n\n`<mds-radial-menu-item>` has no default slot - any slotted content is ignored. The visible label lives exclusively in the `tooltip` prop.\n\n```html\n<!-- INCORRECT -->\n<mds-radial-menu>\n  <mds-radial-menu-item icon=\"mi/baseline/edit\">Modifica</mds-radial-menu-item>\n</mds-radial-menu>\n\n<!-- CORRECT -->\n<mds-radial-menu>\n  <mds-radial-menu-item icon=\"mi/baseline/edit\" tooltip=\"Modifica\"></mds-radial-menu-item>\n</mds-radial-menu>\n```\n\n#### Do Not Omit `tooltip` for an Icon-Only Item Without Another Label\n\nOmitting `tooltip` leaves the inner `<mds-button>` with no hover description and an accessible name that falls back to the icon name (`send`), which names the icon, not the action. Provide `tooltip` unless the icon's purpose is unambiguous and the action is described by a surrounding landmark or heading.\n\n```html\n<!-- INCORRECT: accessible name is just the icon name, no hover hint -->\n<mds-radial-menu>\n  <mds-radial-menu-item icon=\"mi/baseline/send\"></mds-radial-menu-item>\n</mds-radial-menu>\n\n<!-- CORRECT -->\n<mds-radial-menu>\n  <mds-radial-menu-item icon=\"mi/baseline/send\" tooltip=\"Invia messaggio\"></mds-radial-menu-item>\n</mds-radial-menu>\n```\n\n#### Do Not Force `size` When the Parent Controls It\n\n`<mds-radial-menu>` overrides each item's `size` to match its own `size` prop. Setting `size` on the item is redundant: the parent overwrites it when it loads and whenever its own `size` changes.\n\n```html\n<!-- INCORRECT: size will be overridden by the parent anyway -->\n<mds-radial-menu size=\"md\">\n  <mds-radial-menu-item icon=\"mi/baseline/edit\" tooltip=\"Modifica\" size=\"xl\"></mds-radial-menu-item>\n</mds-radial-menu>\n\n<!-- CORRECT: let the parent drive size for all spokes -->\n<mds-radial-menu size=\"md\">\n  <mds-radial-menu-item icon=\"mi/baseline/edit\" tooltip=\"Modifica\"></mds-radial-menu-item>\n</mds-radial-menu>\n```\n\n#### Do Not Style via Undocumented Shadow Internals\n\n`<mds-radial-menu-item>` has no public CSS custom property and no shadow parts: its styling surface is the `variant` and `tone` props. Targeting shadow-internal classes or undocumented `::part()` names couples code to the implementation and breaks on minor releases.\n\n```css\n/* INCORRECT */\nmds-radial-menu-item >>> .button {\n  border-radius: 0;\n}\n```\n\n```html\n<!-- CORRECT: use the variant and tone props -->\n<mds-radial-menu>\n  <mds-radial-menu-item icon=\"mi/baseline/edit\" tooltip=\"Modifica\" variant=\"primary\" tone=\"weak\"></mds-radial-menu-item>\n</mds-radial-menu>\n```\n"
      },
      "props": [
        {
          "name": "icon",
          "type": "string | undefined",
          "complexType": {
            "original": "string",
            "resolved": "string | undefined",
            "references": {}
          },
          "mutable": true,
          "attr": "icon",
          "reflectToAttr": true,
          "docs": "The icon displayed in the button",
          "docsTags": [],
          "values": [
            {
              "type": "string"
            },
            {
              "type": "undefined"
            }
          ],
          "optional": true,
          "required": false,
          "getter": false,
          "setter": false
        },
        {
          "name": "size",
          "type": "\"lg\" | \"md\" | \"sm\" | \"xl\"",
          "complexType": {
            "original": "ButtonSizeType",
            "resolved": "\"lg\" | \"md\" | \"sm\" | \"xl\"",
            "references": {
              "ButtonSizeType": {
                "location": "import",
                "path": "@type/button",
                "id": "src/type/button.ts::ButtonSizeType",
                "referenceLocation": "ButtonSizeType"
              }
            }
          },
          "mutable": false,
          "attr": "size",
          "reflectToAttr": true,
          "docs": "Specifies the size of the menu item.",
          "docsTags": [
            {
              "name": "default",
              "text": "'lg'"
            }
          ],
          "default": "'lg'",
          "values": [
            {
              "value": "lg",
              "type": "string"
            },
            {
              "value": "md",
              "type": "string"
            },
            {
              "value": "sm",
              "type": "string"
            },
            {
              "value": "xl",
              "type": "string"
            }
          ],
          "optional": false,
          "required": false,
          "getter": false,
          "setter": false
        },
        {
          "name": "tone",
          "type": "\"outline\" | \"strong\" | \"text\" | \"weak\" | undefined",
          "complexType": {
            "original": "ToneVariantType",
            "resolved": "\"outline\" | \"strong\" | \"text\" | \"weak\" | undefined",
            "references": {
              "ToneVariantType": {
                "location": "import",
                "path": "@type/tone",
                "id": "src/type/tone.ts::ToneVariantType",
                "referenceLocation": "ToneVariantType"
              }
            }
          },
          "mutable": false,
          "attr": "tone",
          "reflectToAttr": true,
          "docs": "Specifies the tone variant for the button",
          "docsTags": [
            {
              "name": "default",
              "text": "'weak'"
            }
          ],
          "default": "'weak'",
          "values": [
            {
              "value": "outline",
              "type": "string"
            },
            {
              "value": "strong",
              "type": "string"
            },
            {
              "value": "text",
              "type": "string"
            },
            {
              "value": "weak",
              "type": "string"
            },
            {
              "type": "undefined"
            }
          ],
          "optional": true,
          "required": false,
          "getter": false,
          "setter": false
        },
        {
          "name": "tooltip",
          "type": "string | undefined",
          "complexType": {
            "original": "string",
            "resolved": "string | undefined",
            "references": {}
          },
          "mutable": false,
          "attr": "tooltip",
          "reflectToAttr": true,
          "docs": "The tooltip displayed when hovering over the button",
          "docsTags": [],
          "values": [
            {
              "type": "string"
            },
            {
              "type": "undefined"
            }
          ],
          "optional": true,
          "required": false,
          "getter": false,
          "setter": false
        },
        {
          "name": "variant",
          "type": "\"ai\" | \"apple\" | \"dark\" | \"error\" | \"google\" | \"info\" | \"light\" | \"primary\" | \"secondary\" | \"success\" | \"warning\" | undefined",
          "complexType": {
            "original": "ButtonVariantType",
            "resolved": "\"ai\" | \"apple\" | \"dark\" | \"error\" | \"google\" | \"info\" | \"light\" | \"primary\" | \"secondary\" | \"success\" | \"warning\" | undefined",
            "references": {
              "ButtonVariantType": {
                "location": "import",
                "path": "@type/button",
                "id": "src/type/button.ts::ButtonVariantType",
                "referenceLocation": "ButtonVariantType"
              }
            }
          },
          "mutable": false,
          "attr": "variant",
          "reflectToAttr": true,
          "docs": "Specifies the color variant for the button",
          "docsTags": [
            {
              "name": "default",
              "text": "'dark'"
            }
          ],
          "default": "'dark'",
          "values": [
            {
              "value": "ai",
              "type": "string"
            },
            {
              "value": "apple",
              "type": "string"
            },
            {
              "value": "dark",
              "type": "string"
            },
            {
              "value": "error",
              "type": "string"
            },
            {
              "value": "google",
              "type": "string"
            },
            {
              "value": "info",
              "type": "string"
            },
            {
              "value": "light",
              "type": "string"
            },
            {
              "value": "primary",
              "type": "string"
            },
            {
              "value": "secondary",
              "type": "string"
            },
            {
              "value": "success",
              "type": "string"
            },
            {
              "value": "warning",
              "type": "string"
            },
            {
              "type": "undefined"
            }
          ],
          "optional": true,
          "required": false,
          "getter": false,
          "setter": false
        }
      ],
      "methods": [],
      "events": [],
      "listeners": [],
      "styles": [
        {
          "name": "--mds-radial-menu-item-transition-duration",
          "annotation": "prop",
          "docs": "Duration of individual radial menu item transitions.",
          "visibility": "internal"
        },
        {
          "name": "--mds-radial-menu-item-transition-timing-function",
          "annotation": "prop",
          "docs": "Timing function for individual radial menu item transitions.",
          "visibility": "internal"
        }
      ],
      "slots": [],
      "parts": [],
      "states": [],
      "dependents": [],
      "dependencies": [
        "mds-button",
        "mds-tooltip"
      ],
      "dependencyGraph": {
        "mds-radial-menu-item": [
          "mds-button",
          "mds-tooltip"
        ],
        "mds-button": [
          "mds-icon",
          "mds-spinner",
          "mds-text"
        ],
        "mds-tooltip": [
          "mds-text"
        ]
      },
      "storybook": "ui-radial-menu-radial-menu-item--docs"
    }
  ]
}
