Docs/Flight Status Card

Flight Status Card

A detailed flight status widget with dot-matrix airport codes, progress tracking, and ETA information. Pixel-perfect recreation of a premium travel app design.

Installation

$pnpm dlx shadcn@latest add @componentry/flight-status-card

Usage

API Reference

PropTypeDefault
departureCodeThree-letter IATA code for departure airport.
stringYYZ
arrivalCodeThree-letter IATA code for arrival airport.
stringHND
departureCityName of the departure city.
stringToronto
arrivalCityName of the arrival city.
stringTokyo
departureTimeFormatted string for departure time.
stringMON, 6:14 PM
arrivalTimeFormatted string for arrival time.
stringTUE, 7:14 AM
etaEstimated time of arrival label.
stringETA 2:15 PM
timezoneTimezone information text.
stringTokyo Time
nextEventLabel for the next scheduled event.
stringDINNER IN
nextEventTimeTime remaining until the next event.
string2:34H
progressPercentage of flight completed (0-100).
number45
remainingTimeFormatted string for total remaining flight time.
string-7H 01M
classNameAdditional CSS classes for styling.
string—

Click on the icon in the top right of the example preview to view the source code for specific variants.

Keep in mind

This component is inspired by various open-source projects and patterns. Please verify licenses and implementation details before using in production.

Have any questions?
Contact on@harshjdhv
TorontoMON, 6:14 PM
TokyoTUE, 7:14 AM
ETA 2:15 PM
Tokyo TimeDINNER IN 2:34H
-7H 01M
TorontoMON, 6:14 PM
TokyoTUE, 7:14 AM
ETA 2:15 PM
Tokyo TimeDINNER IN 2:34H
-7H 01M
import { FlightStatusCardAdaptive } from "@/components/ui/flight-status-card"

<FlightStatusCardAdaptive />