Componentticket-stub1.22 KB gzipZero dependencies
Boarding Pass
Flight pass with origin, destination and receipt section.
Preview
Live Preview
Installation
Tokens guide →Add to your project via CLI (zero dependencies, code you own):
npx bigbullui add boarding-passOr install the full npm package:
npm install bigbulluiUsage
tsx9 lines
import { BoardingPass } from "@/components/ui/boarding-pass"; <BoardingPass flight="BB-402" origin="JFK" destination="IST" passenger="ADA BULL" seat="12A"/>Source code
boarding-pass.tsx + 1 helperZero third-party dependencies (2 local files shown in tabs below).
tsxboarding-pass.tsx153 lines
import * as React from "react";import { cn } from "./lib/utils"; export interface BoardingPassProps extends React.HTMLAttributes<HTMLDivElement> { flight: string; origin: string; destination: string; originCity?: string; destinationCity?: string; passenger: string; seat: string; gate: string; boardingTime: string; terminal?: string; barcodeValue?: string; className?: string;} Props
Interactive Prop Playground
Tweak parsed AST props below to generate ready-to-paste JSX.
tsx3 lines
import { BoardingPass } from "@/components/ui/boarding-pass"; <BoardingPass />| Prop | Type | Description |
|---|---|---|
| flight | string | Configures flight. (Default: "BB-402") |
| origin | string | Configures origin. (Default: "JFK") |
| destination | string | Configures destination. (Default: "IST") |
| originCity | string | Configures origin city. (Default: "New York") |
| destinationCity | string | Configures destination city. (Default: "Istanbul") |
| passenger | string | Configures passenger. (Default: "ADA BULL") |
| seat | string | Configures seat. (Default: "12A") |
| gate | string | Configures gate. (Default: "B7") |
| boardingTime | string | Configures boarding time. (Default: "18:40") |
| terminal | string | Configures terminal. (Default: "T4") |
| barcodeValue | string | Configures barcode value. (Default: "BB402IST") |
| className | string | Optional Tailwind or custom CSS classes merged with component styles. |