<!--
  GENERATED FILE - do not edit by hand.
  Source of truth: src/components/mds-radial-menu-item/ in the magma monorepo (usage/*.md and the
  component's JSDoc). Regenerated on every stencil build (scripts/component-docs.ts).
-->

# mds-radial-menu-item

> `@maggioli-design-system/magma` 2.15.0. Shadow DOM: style it only through the public CSS custom properties and the parts below.

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.

#### Semantic Behavior

- **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.
- **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.
- **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.
- **Conditional tooltip**: An `<mds-tooltip>` is rendered only when `tooltip` is set.
- **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.
- **No own events**: Activation is the inner `<mds-button>`'s native click, which the consumer wires up directly on the element.

#### Properties & Visual Configurations

The 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.

## Read next

- [`examples.md`](examples.md) - correct usage, from the most common case
- [`mistakes.md`](mistakes.md) - the wrong forms, each with the right one
- [Storybook](https://magma-design-system.github.io/magma/storybook/?path=/docs/ui-radial-menu-radial-menu-item--docs) - the live examples, in the published Storybook of `main`
- [`conventions.md`](../../../../agents/conventions.md), [`variants.md`](../../../../agents/variants.md), [`mistakes.md`](../../../../agents/mistakes.md) - the rules shared by every component

## Props

| Prop | Attribute | Type | Default | Description |
| --- | --- | --- | --- | --- |
| `icon` | `icon` | `string \| undefined` | - | The icon displayed in the button |
| `size` | `size` | `"lg" \| "md" \| "sm" \| "xl"` | `'lg'` | Specifies the size of the menu item. |
| `tone` | `tone` | `"outline" \| "strong" \| "text" \| "weak" \| undefined` | `'weak'` | Specifies the tone variant for the button |
| `tooltip` | `tooltip` | `string \| undefined` | - | The tooltip displayed when hovering over the button |
| `variant` | `variant` | `"ai" \| "apple" \| "dark" \| "error" \| "google" \| "info" \| "light" \| "primary" \| "secondary" \| "success" \| "warning" \| undefined` | `'dark'` | Specifies the color variant for the button |

## CSS custom properties

None is public: its 2 custom properties are internal and may change in any release. Style it with its props, its parts and the semantic roles.

## Dependencies

Uses: `mds-button`, `mds-tooltip`.
