Founding price: $35, then $99 after 23:59 UTC on 4 November, then $99
Get ProA trailing window of 7, 14, 28, 30 or 90 days that ends yesterday by default so it only covers complete days, with a switch to include today. Use this when a trend should compare complete days and a half-finished today would pull it down.
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 trend should compare complete days and a half-finished today would pull it down.
Do not use it for calendar periods such as this month; use range-presets.
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 | { days: number; includeToday: boolean } | 28 days, no today | Window. |
| options | number[] | [7, 14, 28, 30, 90] | Window lengths. |
| onValueChange | (value, range: DateRange) => void | - | The window and the dates it covers. |
| today | string | today | Reference day. |
The pattern ships with a Testing Library test (rolling-window-picker.test.tsx) that covers the window with and without today and switching length.