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-stat

Installation

1 · Add registry to components.json

2 · Install component

Examples

Stat cards

Three stat cards side by side.

API Reference

PropTypeDescription
labelreq
stringMetric label shown above the value.
valuereq
string | numberThe metric value to display.
iconreq
ComponentTypeLucide icon shown in the card corner.
sub
stringSub-text shown below the value.
trend
"up" | "neutral"Renders a trend arrow when set to "up".