NUIv3.0.7

Stat Card

A fully accessible, token-driven StatCard component built with strict WAI-ARIA compliance.

tsx
import { StatCard } from '@nofinite/nui';

Interactive Preview

Loading preview...

Usage

Basic Example

tsx
import { StatCard } from '@nofinite/nui';

<StatCard />

API Reference

PropTypeDefaultDescription
label*ReactNode
value*ReactNode
iconReactNode
trendenum
trendValueReactNode
trendLabelReactNode
isLoadingbooleanfalse
infoReactNode
progressValuenumber
progressMaxnumber100
accentenumdefault
sparklineDatanumber[]

Accessibility & Guidelines

  • Semantic Tokens: Built strictly using Nuicss semantic tokens (bg-surface, text-default, border-subtle, bg-primary).
  • Keyboard Navigation: Adheres to strict WAI-ARIA standards.
  • Screen Reader Support: Includes semantic roles and live regions where appropriate.