Founding price: $35, then $99 after 23:59 UTC on 4 November, then $99
Get ProAn arrival and a next departure date-time that are checked against a minimum connection time, with separate minimums for domestic and international changes and a note when the wait is long. Use this when a traveller builds their own connection and needs to know whether it is feasible.
Derived from this item’s props table, because it declares no controls of its own. This item has no standalone playground, so changes update the code, the share link and the AI prompt.
Use it when a traveller builds their own connection and needs to know whether it is feasible.
Do not use it for booking a flight; it only checks the gap.
This item is part of tealmac UI Pro
The source for this item installs with a Pro licence key. Log in with your key to see the install command, or read the Pro setup page.
| Prop | Type | Default | Description |
|---|---|---|---|
| value / defaultValue | { arrives: string | null; departs: string | null; type: domestic | international } | empty, domestic | Local date-times at the airport. |
| minimums | { domestic: number; international: number } | { 60, 90 } | Minimum minutes. |
| longAfterMinutes | number | 480 | A wait this long is flagged. |
| onValueChange | (value, verdict) => void | - | Verdict: short, tight, ok or long. |
The pattern ships with a Testing Library test (layover-duration-check.test.tsx) that covers all four verdicts, the type changing the minimum and a departure before arrival.