K
@kana-consultant/ui-kit v0.2.0 · docs

Dashboard blocks

StatCard

Headline metric in a card. Supports delta comparisons with direction and color.

Single

One stat

Active tasks

42

Across 6 projects

+12%vs last week
<StatCard
  id='active'
  label='Active tasks'
  value={42}
  icon={ListTodo}
  tone='primary'
  delta={{ value: 12, direction: 'up' }}
  hint='Across 6 projects'
/>

Grid

Four across

Active tasks

42

Across 6 projects

+12%vs last week

Completed

128

Last 30 days

+8%vs last week

Overdue

5

Needs attention

-3%vs last week

Hours tracked

164h

This week

+2%vs last week

Props

Prop Type Default Description
label string Small uppercase label above the value.
value string | number The primary metric.
icon LucideIcon Icon rendered in a colored tile on the right.
tone 'primary' | 'accent' | 'success' | 'warning' | 'info' | 'neutral' 'primary' Tile color.
delta { value: number; direction: "up" | "down" | "flat" } Optional comparison to previous period.
hint string Small text under the value.