@akhatmirzo/ui

Dashboard stats

Four KPI cards with sparklines, a revenue and expenses AreaChart and a share-by-region list.

Add with the CLI: npx @akhatmirzo/cli add dashboard-stats

Umumiy ko'rinish

Chorsu Market — barcha filiallar bo'yicha savdo ko'rsatkichlari

Tushum
234,4 mlnso'm+9,8%o'tgan oyga nisbatan
Buyurtmalar
4 912+6,3%o'tgan oyga nisbatan
Yangi mijozlar
1 408+2,1%o'tgan oyga nisbatan
O'rtacha chek
47 700so'm-1,4%o'tgan oyga nisbatan

Tushum va xarajat

So'mda, tanlangan davr bo'yicha

  • Tushum
  • Xarajat

Hududlar bo'yicha

Buyurtmalar ulushi

  • Toshkent shahri
  • Samarqand
  • Farg'ona
  • Buxoro
  • Boshqa viloyatlar

What's inside

  • Period (7 days / 30 days / year) switches every metric and the chart together.
  • Change is a Badge: green for growth, red for decline; the Sparkline is decorative (aria-hidden).
  • Cards flow into 1, 2 or 4 columns depending on container width.
  • Charts rely on recharts via the separate @akhatmirzo/ui/charts entry point.

Components used

Installation

The CLI copies the block file into your project (components/blocks/dashboard-stats.tsx) and offers to install the packages it needs:

npx @akhatmirzo/cli add dashboard-stats

Manually: install the packages and copy the file from the "Code" tab into your project.

pnpm add @akhatmirzo/ui @akhatmirzo/tokens @akhatmirzo/core lucide-react recharts