# PriceBreakdown

> A receipt block as a `<dl>`: one line per charge with its working beneath, discounts in green with a minus, and a bold total under a rule.

```ts
import { PriceBreakdown } from "@sdxc/ui/travel";
```

Renders the receipt: a `<dl>` whose lines each pair a `<dt>` label with a `<dd>` amount,
so the pairing survives in the accessibility tree, and the `note` centred beneath it.

## Examples

```tsx
<PriceBreakdown note="You won't be charged yet">
	<PriceBreakdown.Line label="4 nights" detail="$182 × 4 nights" amount="$728.00" name="nights" />
	<PriceBreakdown.Line label="Weekly stay discount" amount="$72.80" tone="discount" />
	<PriceBreakdown.Total label="Total" amount="$745.20" name="total" />
</PriceBreakdown>
```

## Props

| Prop | Type | Description |
| --- | --- | --- |
| `note?` | `RemixNode` | Small muted text under the total, such as "You won't be charged yet"; it sits after the `<dl>`, since a description list holds only label/value groups. |

Also accepts everything in `TagProps<"div">`.


### PriceBreakdown.Line

Renders one charge: its label, the working under it in muted small type, and its amount at the end.

| Prop | Type | Description |
| --- | --- | --- |
| `detail?` | `RemixNode` | How the amount was worked out, such as "$182 × 4 nights", in small type beneath. |
| `tone?` | `"default" \| "discount"` |  |

Also accepts everything in `AmountProps`.


### PriceBreakdown.Total

Renders the total: the same columns as a line, set bold and a step larger under a rule that closes off the charges above it.

Also accepts everything in `AmountProps`.


## Types

| Name | Values | What it decides |
| --- | --- | --- |
| `Tone` | `"default" \| "discount"` | `"discount"` colours the line green and signs its amount with a minus. |
