DocsFlight 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

Dependencies: framer-motion clsx tailwind-merge

Usage

API Reference

PropTypeDefault
departureCodestring

Three-letter IATA code for departure airport.

YYZ
arrivalCodestring

Three-letter IATA code for arrival airport.

HND
departureCitystring

Name of the departure city.

Toronto
arrivalCitystring

Name of the arrival city.

Tokyo
departureTimestring

Formatted string for departure time.

MON, 6:14 PM
arrivalTimestring

Formatted string for arrival time.

TUE, 7:14 AM
etastring

Estimated time of arrival label.

ETA 2:15 PM
timezonestring

Timezone information text.

Tokyo Time
nextEventstring

Label for the next scheduled event.

DINNER IN
nextEventTimestring

Time remaining until the next event.

2:34H
progressnumber

Percentage of flight completed (0-100).

45
remainingTimestring

Formatted string for total remaining flight time.

-7H 01M
classNamestring

Additional CSS classes for styling.

—

Keep in mind

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

Need a custom component?

I build bespoke UI components & websites tailored to your brand.

DM me on X
PreviousFisheye Infinite GridNextGithub Calendar
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 />