Skip to content
Entangle UI v0.13.0

StatDelta

Defined in: src/components/feedback/Stat/Stat.types.ts:9

direction: StatDeltaDirection

Defined in: src/components/feedback/Stat/Stat.types.ts:13

Direction of change — drives the icon.


optional semantics?: StatDeltaSemantics

Defined in: src/components/feedback/Stat/Stat.types.ts:21

What the “up” direction means for this metric.

  • positive: up is good (revenue, signups) — green for up, red for down
  • negative: up is bad (errors, latency) — red for up, green for down
  • neutral: just show the direction with muted color
"positive"

value: ReactNode

Defined in: src/components/feedback/Stat/Stat.types.ts:11

Delta value to display (e.g. “+12.4%”).