Admin Stat
A single metric card with label, large tabular value, optional trend indicator, and icon. Use individually for custom dashboards or compose into AdminDashboard.
internal/admin-statInstallation
1 · Add registry to components.json
2 · Install component
Examples
Stat cards
Three stat cards side by side.
API Reference
| Prop | Type | Default | Description |
|---|---|---|---|
labelreq | string | — | Metric label shown above the value. |
valuereq | string | number | — | The metric value to display. |
iconreq | ComponentType | — | Lucide icon shown in the card corner. |
sub | string | — | Sub-text shown below the value. |
trend | "up" | "neutral" | — | Renders a trend arrow when set to "up". |