Flight
FreeA departure card with the two cities, the airport codes, and the time still in the air.
San FranciscoEdmonton
SFOYEG
9:59 PMArrives in 61m12:59 AM
When to use
- A trip, booking, or status card that should read in one glance.
- A dashboard cell with two places and a time still in the air.
When not to use
- A full itinerary. This card holds one leg.
- A list of many flights. Repeat the card, do not stretch this one.
Usage
- Copy the prompt and replace the cities, codes, and times.
- Keep the card near 300px wide so the codes stay on one line.
- Drop the component in as a client file. It carries its own styles.
example.tsx
1import { FlightBoard } from "@/widgets/flight-board";2 3export function Preview() {4 return (5 <div className="h-64">6 <FlightBoard />7 </div>8 );9}