Founding price: $35, then $99 after 23:59 UTC on 4 November, then $99
Get ProA passport expiry date checked against the travel date: it must be valid for the required months after the trip, and the field says the exact date it needed to pass. Use this when a destination requires the passport to be valid for months beyond the trip.
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 destination requires the passport to be valid for months beyond the trip.
Do not use it for documents with no validity rule; use date-field.
It composes date-field and date-time-core, which the CLI installs for you.
import { PassportExpiryValidity } from "@/components/passport-expiry-validity"<PassportExpiryValidity
travelDate="2026-12-01"
monthsRequired={6}
onValueChange={(expiry) => setExpiry(expiry)}
/>| Prop | Type | Default | Description |
|---|---|---|---|
| travelDate | string | - | Date of departure or arrival. |
| monthsRequired | number | 6 | Validity needed after the trip. |
| value / defaultValue / onValueChange | string | null | null | Passport expiry. |
The pattern ships with a Testing Library test (passport-expiry-validity.test.tsx) that covers the required date, a passport that is valid, one that is just short and one that expired.