Black Friday: 30% off Pro

Get 30% off

Updated

Flight Tracker

Pro

Preview

Customize

Start at0.30
Speed4.0min/s
Imperial
Color
Width860px

Installation

Pro

Flight Tracker is a Pro component

Sign in to see the source, or install it with a license key. The live preview and props above are free to explore.

Install with a key

  1. Add the Pro registry to components.json:
    components.json
    {
      "registries": {
        "@uibrik-pro": {
          "url": "https://uibrik.com/r/pro/{name}.json",
          "headers": { "Authorization": "Bearer ${UIBRIK_LICENSE}" }
        }
      }
    }
  2. Put your key in .env.local and add that file to .gitignore:
    .env.local
    UIBRIK_LICENSE=your-license-key
  3. Install it:
    Terminal
    npx shadcn@latest add @uibrik-pro/flight-tracker

Usage

import { FlightTracker } from "@/components/uibrik/flight-tracker/flight-tracker";​const flight = {  code: "NW 482",  airline: "Northwind",  from: {    code: "SFO",    city: "San Francisco",    lat: 37.62,    lon: -122.38,    terminal: "2",    gate: "B14",  },  to: {    code: "JFK",    city: "New York",    lat: 40.64,    lon: -73.78,    terminal: "4",    gate: "C4",  },  scheduledDeparture: "07:50",  departure: "08:05",  scheduledDuration: 330,  duration: 322,  distance: 2586,  cruise: 36000,  tzShift: 3,  aircraft: "A321neo",  seat: "14A",  baggage: "Belt 5",  weather: { temp: 8, text: "Cloudy" },};​const events = [  { at: -0.21, text: "Gate changed from B12 to B14", alert: true },  { at: -0.1, text: "Boarding at B14" },  // …5 more];​<FlightTracker  live  defaultProgress={0.3}  speed={4}  units="imperial"  hour24={false}  color="#3e63dd"  width={860}  flight={flight}  events={events}  // progress={0}/>

Where to use Flight Tracker

  • Travel and airline apps

    Status, position and the next event sit in one card, so nobody needs a separate map screen.

    Pairs with Boarding Pass and Trip Itinerary

  • Pickup and concierge tools

    Time to landing and the arrival gate tell a driver or host exactly when to be there.

  • Logistics and fleet dashboards

    Swap the flight data for any vehicle on a route and keep the live readouts and profile.

Props

FlightTracker
live
Type boolean
true
Fly on its own.
defaultProgress
Type number
0.3
Progress on mount, from departure (0) to landing (1).
speed
Type number
4
Flight minutes per second while live.
units
Type "imperial" | "metric"
"imperial"
Feet, mph and miles, or metres, km/h and km.
hour24
Type boolean
false
Show times in 24-hour format.
color
Type string
"#3e63dd"
Colour of the flown path and the plane.
width
Type number
860
Width of the card; never wider than its container.
flight
Type { code; airline; from; to; scheduledDeparture; departure; scheduledDuration; duration; distance; cruise; tzShift?; aircraft?; seat?; baggage?; weather? }
–
The flight. weather is { temp (°C), text }. Airports are { code, city, lat, lon, terminal?, gate? }; times are "HH:MM", durations in minutes, distance in miles, cruise in feet.
events
Type { at: number; text: string; alert?: boolean }[]
–
Timeline entries. at is 0 at departure and 1 at landing; negative is before departure.
progress
Type number
–
Progress from 0 to 1, controlled. Pass it to drive the card from a live feed.
className
Type string
–
Classes for the wrapper.