# CartLine

> One line of a cart or an order: a small picture, the item's name, the picks that made it and its price, with room at the end for a control such as a quantity stepper.

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

Renders the line inside a list the caller draws.

## Examples

```tsx
<ul><CartLine name="Al pastor trio" details="Blue corn · Verde" price="$11.50" action={<QuantityStepper … />} /></ul>
```

## Props

| Prop | Type | Description |
| --- | --- | --- |
| `name` | `RemixNode` |  |
| `details?` | `RemixNode` | The picks, such as "Blue corn · Guacamole". |
| `price` | `RemixNode` | The line's price as the reader sees it. |
| `media?` | `RemixNode` |  |
| `mediaBackground?` | `string` | The colour behind the picture. |
| `action?` | `RemixNode` | A control at the end, such as a QuantityStepper. |

Also accepts everything in `Omit<TagProps<"li">, "children">`.

