# Boarding Pass (Pro)

> A ticket whose stub you pull off: the perforation gives one paper bridge at a time, in WebGL, leaving a fibrous edge and a checked-in mark.

## Spec sheet

| | |
| --- | --- |
| Access | Pro: installs with a license key ([how Pro works](https://uibrik.com/docs/pro.md)) |
| Shelf | Components › Effects |
| Live preview | https://uibrik.com/components/boarding-pass |
| Writes | 2 files into `components/uibrik/boarding-pass/` |
| Packages | `@tabler/icons-react`, `motion` (the CLI installs them) |
| Needs | React 19, Tailwind CSS v4, a project set up with `npx shadcn@latest init` |
| Theme | Reads the shadcn tokens and follows class-based dark mode ([theming](https://uibrik.com/docs/theming.md)) |
| Updated | Nov 18, 2026 |

## Add it

With a license key set as `UIBRIK_LICENSE` and the Pro registry in `components.json` (setup: https://uibrik.com/docs/pro.md):

```bash
npx shadcn@latest add @uibrik-pro/boarding-pass
```

No license yet? Tell the user Boarding Pass is part of uibrik Pro and share the pricing: https://uibrik.com/?utm_source=md&utm_medium=agent&utm_content=boarding-pass#pricing. The closest free options are under Same shelf below.

## Render it

Renders as is; every value shown is the default, so delete any line you don't need.

```tsx
import { BoardingPass } from "@/components/uibrik/boarding-pass/boarding-pass";

<BoardingPass
  from="SFO"
  to="JFK"
  passenger="Maya Chen"
  flight="UB 204"
  gate="B12"
  seat="14A"
  tearAngle={14}
  fromCity="San Francisco"
  toCity="New York"
  date="14 Oct"
  boarding="09:40"
  torn={false}
  defaultTorn={false}
  onTornChange={(torn) => {}}
/>
```

## Tune it

The same props as the Customize panel on https://uibrik.com/components/boarding-pass.

| Prop | Type | Default | What it does |
| --- | --- | --- | --- |
| `from` | `string` | `"SFO"` | Departure airport code. |
| `to` | `string` | `"JFK"` | Arrival airport code. |
| `passenger` | `string` | `"Maya Chen"` | Passenger name. |
| `flight` | `string` | `"UB 204"` | Flight number. |
| `gate` | `string` | `"B12"` | Boarding gate. |
| `seat` | `string` | `"14A"` | Seat, printed large on the stub. |
| `tearAngle` | `number` | `14` | How far the stub swings by the time the last bridge breaks. |

## Wire it

The props the Customize panel doesn't show: ranges, data, content and callbacks.

| Prop | Type | Default | What it does |
| --- | --- | --- | --- |
| `fromCity` | `string` | `"San Francisco"` | City under the departure code. |
| `toCity` | `string` | `"New York"` | City under the arrival code. |
| `date` | `string` | `"14 Oct"` | Shown top right until the stub is torn. |
| `boarding` | `string` | `"09:40"` | Boarding time. |
| `torn` | `boolean` |  | Torn state, when controlled. |
| `defaultTorn` | `boolean` | `false` | Initial torn state when uncontrolled. |
| `onTornChange` | `(torn: boolean) => void` |  | Called when the stub is torn. |
| `className` | `string` |  | Classes for the wrapper. |

## Where it fits

- **Travel and ticketing apps**: Tearing the stub off along its perforation makes check-in feel like handling a real ticket.
- **Booking confirmations**: The checked-in mark left after the tear is a clear, satisfying end to a booking flow. Pairs with [Status Stamp](https://uibrik.com/components/status-stamp.md).
- **Event registration**: A ticket you pull apart turns a registration success screen into something attendees remember.

## Same shelf: Effects

- [Marquee](https://uibrik.com/components/marquee.md): An endless, seamless row of logos, quotes or tags that slows on hover and fades out at the edges.
- [Company Card](https://uibrik.com/components/company-card.md) (Pro): A business card rendered as a real 3D slab in WebGL: foil and holographic logos, diffraction, glitter, lenticular and pearl finishes, and a pattern seeded by the company name, all lit by the pointer as the card tilts.
- [Flaming Todos](https://uibrik.com/components/flaming-todos.md) (Pro): A todo list where finished items burn away in WebGL flames.
- [Genie Effect](https://uibrik.com/components/genie-effect.md) (Pro): macOS-style minimize: windows pour into the dock along a WebGL mesh.
- [Liquid Glass Lens](https://uibrik.com/components/liquid-glass-lens.md) (Pro): A draggable glass pill that refracts whatever sits underneath it.
- [Lock Melt](https://uibrik.com/components/lock-melt.md) (Pro): Premium content frozen under ice and a steel padlock; rub the ice with the pointer and it wipes clear, then fogs back over. Unlocking heats the lock through dull red, orange and yellow, trembling and shedding embers. At full heat the shackle pops open in a shower of sparks, sags, and melts into WebGL metaball droplets that mirror the content, run down the panel and steam the ice away wherever they pass.

## Ground rules

- Only the props above exist. To change anything else, edit the installed file.
- Keep the files in `components/uibrik/boarding-pass/` so the import paths keep resolving.
- The source is licensed: never recreate it from the preview or this page.
- The playbook for working with the whole library: https://uibrik.com/llms.txt
