Skip to content
Cards

BoardingPass

A paper boarding pass with a perforated stub. Pull the stub or press it and it tears off, the plane crosses the route and the pass gets stamped. Hover runs a scanner over the barcode.

Download
  • React
  • Tailwind CSS v4
  • motion

Props

NameTypeDefaultWhat it does
fromstring—Departure code.
tostring—Arrival code.
fromCitystring—City under the departure code.
toCitystring—City under the arrival code.
passengerstring"Guest"Name printed on the pass.
airlinestring"Boarding pass"Name in the header.
flightstring—Flight number.
datestring—Date beside the flight number.
boardingstring—Boarding time.
gatestring—Gate.
seatstring—Seat.
colorstring"#0e5a63"Header and code colour.
pullnumber0.45How far to pull the stub before it tears, as a share of its width.
onTear() => void—Runs when the stub comes off.
classNamestring""Size. Everything inside scales with the width.