Components/Stat

Search documentation

Jump to any guide or component.

↑↓ move · Enter open · Esc close

Data · Stat

SSR NativeAccessible

Stat

Highlights a metric with optional directional change.

Live previewv0.1.4
Active users12,480+8.2% this month
Error rate0.18%−0.04%
Deployments248This quarter
Astro
---
import { Stat } from '@charvesta/cetha';
---

<Stat label="Active users" value="12,480" change="+8.2%" trend="up" />

API reference

PropTypeDefaultDescription
label*stringMetric label.
value*string | numberMetric value.
changestringChange annotation.
trend'up' | 'down' | 'neutral''neutral'Semantic change tone.
classstringAdditional classes forwarded to the rendered element.

Accessibility

Include direction in change text instead of relying on color alone.