Founding price: $35, then $99 after 23:59 UTC on 4 November, then $99
Get ProA record date and a retention rule in years and months that give the date after which it may be deleted, with a legal hold switch that stops the clock. Use this when compliance requires records to be kept for a fixed time and then removed unless something is holding them.
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 compliance requires records to be kept for a fixed time and then removed unless something is holding them.
Do not use it for expiry warnings on one date; use expiry-warning-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 |
|---|---|---|---|
| recordDate | string | - | Date the record was created or closed. |
| years / months | number | 7 / 0 | Retention period. |
| onValueChange | (result: { deleteAfter; status; onHold }) => void | - | Result and state. |
| today / locale | - | - | Reference day and locale. |
The pattern ships with a Testing Library test (retention-delete-after-date.test.tsx) that covers years and months, the day after, leap-day records, hold and overdue.