Skip to Content
Kokonut UI

CD-16CardsNew, October 22, 2026

Boarding Pass

A boarding pass that keeps itself current. When the gate or times change, only the changed characters roll over, the old value struck through.

Install with
lucide-react, motion

PROOnboarding Checklist and more like it are in Kokonut UI Pro

Installation

Boarding Pass is a free, open-source React component in the Kokonut UI Cards collection. Add it with the shadcn CLI, which copies the source into components/kokonutui/boarding-pass.tsx, so the code is yours to change.

npx shadcn@latest add @kokonutui/boarding-pass

Or add it by hand: install its packages, then copy the source from Copy code above into components/kokonutui/boarding-pass.tsx.

npm install lucide-react motion

Usage

import BoardingPass from "@/components/kokonutui/boarding-pass";

export default function Example() {
  return <BoardingPass />;
}

Props

flight
Flight

Leave out to watch a demo flight get a gate change and a delay.

className
string

Extra classes for the root element.

Flight

airlinerequired
string
numberrequired
string
fromrequired
{ code: string; city: string; time: string }
torequired
{ code: string; city: string; time: string }
daterequired
string
gaterequired
string
boardsrequired
string
seatrequired
string
grouprequired
string
passengerrequired
string
statusrequired
FlightStatus
note
string

One line under the status, like "Delayed 25 min".

FlightStatus

type FlightStatus = "on-time" | "delayed" | "gate-change" | "boarding";

Dependencies

NeedsVersionComes from
lucide-react^0.556.0npm, installed by the CLI
motion^12.23.25npm, installed by the CLI
cn from lib/utils.tsshadcn init
React19Your app
Tailwind CSS4Your app

No provider, font or global CSS to set up: the file works as soon as it lands.