# MenuItemCard

> An item on a menu as one card: its name, a two-line description, its price and tags beside its picture, with a round + over the picture.

```ts
import { MenuItemCard } from "@sdxc/ui/commerce";
```

Renders the card. It fills its grid cell, so a row of cards lines up whatever each
description's length.

## Examples

```tsx
<MenuItemCard dialog="item-tacos" name="Al pastor trio" description="Spit-roasted pork, pineapple" price="$11.50" media={<img src="/tacos.svg" alt="" />} />
```

## Props

| Prop | Type | Description |
| --- | --- | --- |
| `dialog` | `string` | The id of the dialog the card opens. |
| `name` | `string` |  |
| `description?` | `string` |  |
| `price` | `RemixNode` | The price as the reader sees it, such as "$11.50" or "From $11.50". |
| `badges?` | `RemixNode` | Words or badges after the price, such as "Popular" or a dietary tag. |
| `media?` | `RemixNode` | The picture, such as the dish; the card shows no picture when unset. |
| `mediaBackground?` | `string` | The colour behind the picture. |
| `unavailable?` | `boolean` | Hides the + when the item cannot be added now; the card still opens its details. |

