SearchCtrlK

  • ↑↓navigate
  • ↵open
  • escclose

Can’t find it? Contact us

On this page

FlightRoute

One flight leg.

Larkwing AirLW 214
Departs MRW Merrow
Flight time 7h 25m1 stop · VLS
Arrives arrives the next dayOSK Oskarn
  • Aerion 320neo
  • Economy
View code
tsx
<FlightSegment
	airline="Larkwing Air"
	mark={<LarkwingMark />}
	flightNumber="LW 214"
	departure={{ time: "22:40", dateTime: "2026-03-14T22:40", code: "MRW", city: "Merrow" }}
	arrival={{ time: "06:05", dateTime: "2026-03-15T06:05", code: "OSK", city: "Oskarn" }}
	duration="7h 25m"
	stops={1}
	stopsLabel="1 stop · VLS"
	dayOffset="+1"
	dayOffsetLabel="arrives the next day"
	labels={{ departs: "Departs", arrives: "Arrives", duration: "Flight time" }}
	aircraft="Aerion 320neo"
	cabin="Economy"
/>

Installation

An ordinary dependency: install it, import the theme once, and import the component where it is used.

Terminal
npm add @sdxc/ui remix
typescript
import "@sdxc/ui/theme.css";

Usage

typescript
import { FlightRoute } from "@sdxc/ui/travel";

Renders the route on one line: departure at the start, arrival at the end, and between them the duration over a drawn track with the stops label under it. It never wraps, so it doubles as the compact summary of a whole journey in a results row.

Props

Read from the component's own types, so every prop, every default and every allowed value is listed.

PropTypeRequiredDescription
departureEndpointYes
arrivalEndpointYes
durationRemixNodeYesThe time in the air or the whole journey, formatted, such as "2h 15m".
stopsnumberNoHow many stops the track draws as dots; zero draws a clear line.
stopsLabelRemixNodeNoWhat the stops amount to, under the track, such as "Nonstop" or "1 stop · VLS".
dayOffsetstringNoThe badge after the arrival time when it lands on a later day, such as "+1".
dayOffsetLabelstringNoWhat the day badge means, read in its place, such as "arrives the next day".
labelsLabelsNo

Also accepts everything in Omit<TagProps<"div">, "children">.

Other components this module publishes.

  • FlightSegment
@sdxc/ui

Can’t find it? Contact us