# MenuItem

> One action in a DropdownMenu: a 40px row with its words. Green when it's pointed at or has the focus, red for one that can't be undone.

| | |
|---|---|
| Kind | component |
| Contract | `review` · [menu-item.contract.yaml](https://github.com/Runceanu/rost/blob/master/contracts/menu-item.contract.yaml) |
| Guidance | `proposed` |
| Source | [Figma 755:23](https://www.figma.com/design/1Zy0wiWKXQAvsfDBX3KR0d/UI-Kit-v01?node-id=755-23) · read 2026-11-17 · frozen 2026-11-17 |
| Implemented in | nowhere yet |

## Install

It lands in `src/rost/menu-item/`, with what it needs and its contract:

```sh
npx github:Runceanu/rost add menu-item
```

Then import `src/rost/fonts.css` and `src/rost/tokens.css` once, at the root of the app. More on this in [Install](https://rost.build/docs/install.md).

## Props

| Prop | Type | Values | Default |
|---|---|---|---|
| `tone` | enum | `default` `negative` | `default` |
| `disabled` | boolean |  | `false` |
| `icon` | slot |  |  |
| `children` | slot |  |  |

## States

`Default` · `Hover` · `Focus` · `Disabled`

## Anatomy

- `root`: A `<button role="menuitem">`, as wide as the menu, 40px tall, 12px in at the sides, with 8px corners. The words in paragraph type.

## When to use

- **Things to do to one thing.** Edit, Duplicate, Download, Delete: the actions for a row or a card, out of the way until someone wants them.

## When not to use

- **Going somewhere.** A list of pages is navigation. That's **Menu** or **Navigation**.

## Behaviour

Pressing it does the action and closes the DropdownMenu. Pointed at or focused, it turns green, or dark red when it's negative. A disabled one is skipped by the arrow keys' action but can still be reached, so its name is read.

## Accessibility

- **Element**: `<button role="menuitem">`. A disabled one has `aria-disabled`, not `disabled`, so it stays in the menu's order.
- **Colour**: The words are 17:1 on the menu's grey, the red ones 6:1, and green on hover 7:1. Disabled words are faint on purpose and not counted.

## Content

A verb, and the object when it isn't clear: Delete invoice. No ellipsis unless it opens something that asks more.

## Tokens

Every token this component uses, across all its variants.

| Token | Resolves to |
|---|---|
| `font-family/base` | `'General Sans Variable'` |
| `menu-item/default/label` | `#ededed` |
| `menu-item/disabled/label` | `#555555` |
| `menu-item/hover/background` | `#006f27` |
| `menu-item/hover/label` | `#ededed` |
| `menu-item/negative/hover/background` | `#48050c` |
| `menu-item/negative/hover/label` | `#fee6e1` |
| `menu-item/negative/label` | `#f2705f` |
| `spacing/gap/small` | `8px` |
| `spacing/gap/small-medium` | `12px` |
| `spacing/radius/small` | `8px` |
| `spacing/size/medium` | `40px` |
| `typography/paragraph/font-size` | `14px` |
| `typography/paragraph/font-weight/regular` | `400` |
| `typography/paragraph/letter-spacing` | `0px` |
| `typography/paragraph/line-height` | `20px` |

See it live, with every value of every variant: [rost.build/components/dropdown-menu/#menu-item](https://rost.build/components/dropdown-menu/#menu-item)
