Founding price: $35, then $99 after 23:59 UTC on 4 November, then $99
Get ProA start and end for an advertising flight with a daily budget that works out the days, the total spend and a warning when the flight is short or crosses a month end. Use this when a campaign runs between two dates at a daily spend and finance needs the total.
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 campaign runs between two dates at a daily spend and finance needs the total.
Do not use it for fixed-price bookings; use hotel-stay-dates.
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 |
|---|---|---|---|
| dailyBudget | number | 100 | Spend per day. |
| currency | string | USD | Currency. |
| onValueChange | (flight: { range; days; total } | null) => void | - | Flight and total. |
| minDays | number | 3 | Shortest sensible flight (a warning, not an error). |
The pattern ships with a Testing Library test (campaign-flight-dates.test.tsx) that covers days and totals, the month split, the short warning and the budget input.