Skip to main content
HahlexMillarv0.1.0 Draft
ComponentsDraftWCAG 2.1/2.2 AAZero Gradients@hahlex/millar-ui

Stat

Operational KPI tile using full-box color mixing, tinted IconBox, --text-kpi (24px tabular-nums), and optional solid progress bar.

Interactive Playground

Live component specimen driven directly by Millar tokens in Light and Dark mode.

WCAG AA Contrast97 / 970 regressions
Token Parity92%CSS · TW4 · AntD · MCP
@hahlex/millar-ui
import { Stat, IconShield } from "@hahlex/millar-ui";

<Stat label="Contrast checks" value="80 / 80" delta="WCAG 2.1 AA" tone="success" icon={<IconShield size="md" />} progressPercent={100} />

Props API

Stat component props
PropTypeDefaultDescription
labelstring-Metric label.
valuestring | number-Primary tabular figure rendered with --text-kpi.
deltastring-Optional comparison caption.
toneMillarIconBoxTone"brand"Tinted IconBox tone.
progressPercentnumber-Optional 0-100 solid progress indicator.

Usage Guidelines & Agent Guardrails

When to use
  • Operational dashboard KPI rows and report summaries.
Responsive behavior

Stacks cleanly in 1/2/4-column CSS grids across mobile, tablet, and desktop.

Anti-Hallucination Guardrails (AI & Human)
  • Never color only a bare digit without container framing.
  • Never use CSS gradients on the progress bar.

Accessibility & Keyboard Contract

Progress bar exposes role='progressbar', aria-valuenow, aria-valuemin, aria-valuemax, aria-label.

Non-interactive display element; semantic contrast and non-color status cues apply.