Stat API
Stat summarizes key metrics for dashboards, runtime health, and CMS activity.
Preview components
Open the component docs to see examples, combinations, and usage patterns built on top of this API.
- StatMetric cards and dashboard examples.
Preview
Routes
42+8 this weekPublished routes in the current app.
Build
1.8sfast pathCold compile on current preview branch.
Queue
12needs reviewPending moderation items.
Import
import { Stat } from "@axonyx/react";Props
| Prop | Type | Default | Description |
|---|---|---|---|
| label | ReactNode | required | Metric label. |
| value | ReactNode | required | Primary metric value. |
| delta | ReactNode | undefined | Secondary change text. |
| tone | "neutral" | "positive" | "warning" | "danger" | "neutral" | Semantic metric tone. |
| icon | ReactNode | undefined | Optional icon slot in the stat header. |
| description | ReactNode | undefined | Muted supporting context below the metric. |
CSS contract
.ax-stat .ax-stat__header .ax-stat__label .ax-stat__icon .ax-stat__value .ax-stat__delta .ax-stat__description [data-tone]