Dashboard

AppShell + StatCard + ChartCard + DataTable — a full analytics page composed from srui super-components.

The Dashboard block composes the super-components into a complete analytics page. Everything on it — the shell, the KPI tiles, the range-switching chart, the filterable table — is stock @iammikz/srui, restyled live by the preset switcher in the top nav.

Acme Analytics
live
Monthly revenue
12.4
$0
Active users
3.1
0
Error rate
0.4
0%
Revenue
Range switches replay the draw-in.
020406080JanFebMarAprMayJunJul
72%
Capacity
14 rows
Person 1[email protected]Admininactive
Person 2[email protected]Editoractive
Person 3[email protected]Vieweractive
Person 4[email protected]Adminactive
Person 5[email protected]Editoractive
Rows per page
Page 1 of 3

Composition

<AppShell sidebar={nav} topbar={title}>
  <StatCard label="Monthly revenue" value={48219} formatValue={fmt} delta={{ value: 12.4, direction: "up" }} />
  <ChartCard chart="line" area labels={months} series={series} timeRanges={["7d", "30d", "90d"]} />
  <DataTable columns={columns} data={people} filterable pinColumns pageSize={5} />
</AppShell>