Stat Card
A dashboard metric with a trend and a short description.
Installation
bash
shellui-native add stat-card
Platforms: MAUI · Avalonia. Also installs icon.
Usage
Basic
Total revenue
$45,231.89
+20.1%from last month
Churn
2.4%
-0.6%from last month
<ui:StatCard Title="Total revenue" Value="$45,231.89" Change="+20.1%" Trend="Up"
Icon="DollarSign" Description="from last month" />
<ui:StatCard Title="Churn" Value="2.4%" Change="-0.6%" Trend="Down"
Icon="Users" Description="from last month" /><ui:StatCard Title="Total revenue" Value="$45,231.89" Change="+20.1%" Trend="Up"
Icon="DollarSign" Description="from last month" />
<ui:StatCard Title="Churn" Value="2.4%" Change="-0.6%" Trend="Down"
Icon="Users" Description="from last month" />Not available on yet
API
| Property | Type | Default | Description |
|---|---|---|---|
Title |
string |
— | Heading text. |
Value |
string |
— | The headline figure. |
Change |
string |
— | Change against the previous period, shown next to the trend. |
Trend |
StatTrend |
Neutral |
Direction of the change: Up, Down or Neutral. One of Neutral, Up, Down. |
Description |
string |
— | Supporting text under the title. |
Icon |
IconName |
None |
Lucide icon from IconName; None for no icon. |