# CarOffer

> A rental car result: the car's picture, its class and example model, spec chips with an icon each, perks, the rental company and its rating, the pickup point, and the daily and total price over the caller's actions.

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

Renders the card as an `<article>` headed by the class and model in a heading at the ambient
level. Under 38rem the picture heads the card and the price closes it; wider, the picture,
the details and the price take three columns. Spec icons are decoration beside their words.

## Examples

```tsx
<CarOffer art={<img src="/cars/c3.png" alt="" />} category="Compact" model="Velo C3 or similar"
	specs={[{ kind: "seats", label: "5 seats" }, { kind: "transmission", label: "Automatic" }]}
	vendor="Tallow Rent" rating="8.6 · Excellent" pickup="In terminal" price="$38" priceUnit="/ day"
	total="$266 total" actions={<Button>View deal</Button>} />
```

## Props

| Prop | Type | Description |
| --- | --- | --- |
| `art?` | `RemixNode` | The car's picture, such as an `<img>` or SVG; it fills a 16:10 frame. |
| `category` | `RemixNode` | The car class, such as "Compact"; it heads the card. |
| `model?` | `RemixNode` | The example model, such as "Velo C3 or similar", after the class. |
| `level?` | `HeadingLevel` | The heading level of the class and model; the ambient level, then 3, when left out. |
| `specs?` | `Spec[]` |  |
| `perks?` | `RemixNode[]` | Short benefits, each drawn with a check, such as "Free cancellation". |
| `vendor?` | `RemixNode` | The rental company's name, such as "Tallow Rent". |
| `vendorLogo?` | `RemixNode` | The rental company's logo, drawn in a 1.5rem-tall box before its name. |
| `rating?` | `RemixNode` | The company's rating as shown, such as "8.6 · Excellent", after a star. |
| `pickup?` | `RemixNode` | Where the car is collected, such as "In terminal · Merrow Airport". |
| `badges?` | `RemixNode` | Labels over the card, such as a `<Badge>` reading "Great value". |
| `price` | `RemixNode` | The daily price, formatted by the caller, such as "$38". |
| `priceUnit?` | `RemixNode` | What the price is per, such as "/ day", after it in small type. |
| `total?` | `RemixNode` | The total for the rental, such as "$266 total". |
| `actions?` | `RemixNode` | The select link or button, under the price. |

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


## Types

| Name | Values | What it decides |
| --- | --- | --- |
| `SpecKind` | `"seats" \| "bags" \| "doors" \| "transmission" \| "fuel" \| "electric" \| "ac" \| "mileage"` | What a spec chip states, which picks its icon. |
