Founding price: $35, then $99 after 23:59 UTC on 4 November, then $99
Get ProTimeframe preset buttons plus a custom date range that rejects a start after the 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.
Dashboards with a shared reporting period.
Do not use it when: Single-date filters.
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 |
|---|---|---|---|
today | string | - | Today as YYYY-MM-DD. |
onApply | (range) => void | - | Called with {start,end}. |
Presets use aria-pressed; errors use role=alert; the active range is a status line.
The pattern ships with a test (kpi-timeframe-presets.test.tsx). Tests drive the real interactions and the pure helper functions.