Founding price: $35, then $99 after 23:59 UTC on 4 November, then $99
Get ProA date range for a data export with a maximum span that, when exceeded, offers to split it into equal chunks and lists the exports it would create. Use this when an export has a maximum span and people need a way forward when they ask for more.
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 an export has a maximum span and people need a way forward when they ask for more.
Do not use it for plain reporting ranges; use date-range-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 |
|---|---|---|---|
| maxDays | number | 90 | Longest single export. |
| onExport | (ranges: DateRange[]) => void | - | Called with one range, or the chunks. |
| max | string | - | Latest selectable day. |
The pattern ships with a Testing Library test (export-date-range-limit.test.tsx) that covers the split maths, a range inside the limit and exporting chunks.