v0.3.1 StableFoundation ComponentReact 18 & 19Zero Runtime CSS

Stat

A compact value with context, not a fabricated trend.

Interactive preview

Components in this checkout
100

50 new additions

Independent React building blocks

Usage

import { Stat } from "@devvy-ui/react";

<Stat label="Components" value="100" change="50 new additions" description="Typed React building blocks" />

API reference

Native HTML attributes, className, style and a forwarded ref are supported. Component-specific props:

PropTypeDefaultDescription
labelstringrequiredMetric name.
valueReactNoderequiredDisplayed value.
change / descriptionstring—Readable context.

Accessibility & behavior

Platform Behavior & Guidelines

Visible label/value use a definition list. Change text is supplied explicitly; no live announcements or performance claims are inferred from numbers.

Source ownership

Run npx @devvy-ui/cli init once in your React project, then add the source:

npx @devvy-ui/cli add stat

Make the source yours.

Start from the canonical implementation used by the package and registry. Change the code, keep the MIT notice, and build the behavior your project needs.

Stat.tsxREACT / TSX

Edit your own copy. Downloaded source uses your changes; the component preview above uses the shipped version. Run the source installer first to include shared helpers.