Founding price: $35, then $99 after 23:59 UTC on 4 November, then $99
Get ProA statistic that refreshes on an interval, can be paused, shows when it last updated and does not spam screen readers with every tick.
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 this when a number is live (visitors online, queue depth, price) and people watch it for a while.
Do not use it when the value changes rarely (fetch on load and offer a refresh button).
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 | Required | Description |
|---|---|---|---|
title | string | required | - |
fetchValue | () => Promise<number> | required | Fetches the current value. |
intervalMs | number | optional | Polling interval in ms. Default 5000. |
suffix | string | optional | - |
The pattern ships with a Testing Library test (statistic-live-counter.test.tsx) that covers polling on the interval, pausing, the absence of a live region and the failure state.