FlightRoute
One flight leg.
Departs MRW Merrow
Flight time 7h 25m1 stop · VLS
Arrives +1 arrives the next dayOSK Oskarn
- Aerion 320neo
- Economy
View code
<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.
npm add @sdxc/ui remiximport "@sdxc/ui/theme.css";Usage
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.
| Prop | Type | Required | Description |
|---|---|---|---|
departure | Endpoint | Yes | |
arrival | Endpoint | Yes | |
duration | RemixNode | Yes | The time in the air or the whole journey, formatted, such as "2h 15m". |
stops | number | No | How many stops the track draws as dots; zero draws a clear line. |
stopsLabel | RemixNode | No | What the stops amount to, under the track, such as "Nonstop" or "1 stop · VLS". |
dayOffset | string | No | The badge after the arrival time when it lands on a later day, such as "+1". |
dayOffsetLabel | string | No | What the day badge means, read in its place, such as "arrives the next day". |
labels | Labels | No |
Also accepts everything in Omit<TagProps<"div">, "children">.
Also exported
Other components this module publishes.
FlightSegment