Founding price: $35, then $99 after 23:59 UTC on 4 November, then $99
Get ProAn entry date and an allowed number of days that give the last day you may stay, check a planned exit date against it and count the days of the trip. Use this when a visa or permit allows a stay measured in days from entry.
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 visa or permit allows a stay measured in days from entry.
Do not use it for rolling windows such as 90 days in 180; this checks one stay.
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 |
|---|---|---|---|
| allowedDays | number | 90 | Days allowed from entry (entry day counts as day 1). |
| onValueChange | (result: { entry; exit; lastDay; daysUsed; ok }) => void | - | Dates and the verdict. |
| today / locale | - | - | Reference day and locale. |
The pattern ships with a Testing Library test (visa-stay-window.test.tsx) that covers the last day, counting the entry day, an exit on the last day and one a day late.