# BoardingPass

> A wallet-style boarding pass: the airline's band, the route in large airport codes, a grid of flight details, a perforated tear line and a scannable-looking code.

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

Renders the pass: an `<article>` named by `label` whose top part holds the airline band, the
route and the details as a `<dl>`, and whose stub, below a perforated tear, holds the
PassCode. It prints in full colour, unshadowed and outlined, on one page.

## Examples

```tsx
<BoardingPass
	label="Boarding pass, MRW to VLS"
	airline={{ name: "Larkwing Air" }}
	passenger="Ana Ortiz"
	from={{ code: "MRW", city: "Marrow Bay", time: "08:40" }}
	to={{ code: "VLS", city: "Vellis", time: "11:05" }}
	flight="LK 482" date="14 Mar" gate="B12" boards="08:05" seat="14C" zone="3" cabin="Economy"
	confirmation="K7Q2XR"
	code="LK482|K7Q2XR|14C"
	labels={labels}
/>
```

## Props

| Prop | Type | Description |
| --- | --- | --- |
| `label` | `string` | Names the pass for assistive technology, e.g. "Boarding pass, MRW to VLS". |
| `airline` | `Airline` |  |
| `passenger` | `RemixNode` |  |
| `from` | `Place` |  |
| `to` | `Place` |  |
| `flight` | `RemixNode` |  |
| `date` | `RemixNode` |  |
| `gate` | `RemixNode` |  |
| `boards` | `RemixNode` | When boarding starts, formatted by the caller. |
| `seat` | `RemixNode` |  |
| `zone` | `RemixNode` |  |
| `cabin` | `RemixNode` |  |
| `confirmation` | `RemixNode` |  |
| `code` | `string` | The data the code art stands for; the same string always draws the same pattern. |
| `labels` | `Labels` |  |

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


## Also exported

- `PassCode`
