Stat

A KPI card with a trend-coloured change.

Total Revenue$45,231.89

With trend

New Customers1,204+12.5%vs last monthChurn rate2.4%-0.5%vs last month

Grid

Revenue$45.2k+12.5%Users2,340+4.1%Orders1,210-2.0%Refunds34-8.0%

With sparkline

Active users2,318+12.4%

API reference

Inputs

PropTypeDefaultDescription
labelstring | nullnullSmall caption shown above the value.
valuestring | number''Primary statistic displayed as the large value.
changestring | nullnullChange indicator (e.g. "+12%"); coloured by trend.
trend"down" | "neutral" | "up" | nullnullExplicit trend direction; inferred from `change`'s sign when null.
captionstring | nullnullMuted text shown next to the change value.
sparklinereadonly number[][]Optional inline sparkline drawn from a series of numbers.

Every ng-blatui component also accepts a class input to merge extra Tailwind classes onto the host.