Founding price: $35, then $99 after 23:59 UTC on 4 November, then $99
Get ProA KPI with editable warning and critical thresholds that turn the value into a written status.
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.
Operators tune when a metric should alert.
Do not use it when: Thresholds are fixed by policy.
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 |
|---|---|---|---|
label | string | - | Metric name. |
value | number | - | Current value (higher is worse). |
unit | string | "" | Suffix. |
defaultWarn | number | 70 | Initial warning threshold. |
defaultCritical | number | 90 | Initial critical threshold. |
Status is a role=status sentence, not colour only. Inputs are aria-invalid when warn is not below critical.
The pattern ships with a test (kpi-threshold-alert.test.tsx). Tests drive the real interactions and the pure helper functions.