Founding price: $35, then $99 after 23:59 UTC on 4 November, then $99
Get ProA how-long-ago question for health forms with Today, Yesterday and a few days ago as choices, plus an exact date, which fills in the date and shows it back. Use this when people remember when something started as how long ago, not as a calendar date.
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 people remember when something started as how long ago, not as a calendar date.
Do not use it for future dates or exact administrative dates; use 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 |
|---|---|---|---|
| value / defaultValue / onValueChange | string | null | null | Onset date (ISO). |
| maxDaysAgo | number | 14 | Longest quick choice; older uses the exact date. |
| today | string | today | Reference day. |
The pattern ships with a Testing Library test (symptom-onset-date.test.tsx) that covers the choices, picking one and the exact date path.