Founding price: $35, then $99 after 23:59 UTC on 4 November, then $99
Get ProA date field whose earliest allowed day is today plus a number of working days, with the earliest date stated and anything earlier marked invalid. Use this when work needs notice, such as three working days to prepare a custom order.
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 work needs notice, such as three working days to prepare a custom order.
Do not use it when the notice is in calendar days only; set min on date-field.
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 |
|---|---|---|---|
| leadDays | number | 3 | Working days of notice. |
| holidays | string[] | [] | Non-working dates. |
| value / defaultValue / onValueChange | string | null | null | Chosen date. |
| today | string | today | Reference day. |
The pattern ships with a Testing Library test (lead-time-date-field.test.tsx) that covers the earliest date over weekends and holidays and the validation.