Founding price: $35, then $99 after 23:59 UTC on 4 November, then $99
Get ProA contract end date and a notice period in days or months that give the last day to give notice, moved back to a working day if it falls on a weekend or holiday. Use this when a contract renews unless notice is given by a deadline that counts back from its end.
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 contract renews unless notice is given by a deadline that counts back from its end.
Do not use it for dates counted forward from a start; use probation-end-date.
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 |
|---|---|---|---|
| endDate | string | - | Contract end date. |
| notice | { amount: number; unit: "days" | "months" } | 30 days | Notice period. |
| holidays | string[] | [] | Non-working dates. |
| onValueChange | (result: { endDate; noticeBy; rolledBack: boolean }) => void | - | The last day to give notice. |
The pattern ships with a Testing Library test (contract-renewal-notice-date.test.tsx) that covers days and months, rolling back over a weekend and a holiday, and the callback.