Skip to content

StatDelta

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

Properties

direction

direction: StatDeltaDirection

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

Direction of change — drives the icon.


semantics?

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

Default

"positive"

value

value: ReactNode

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

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