Stat

Newdata

Compact metric card with label, value, change text, and trend tone.

import { Stat } from '@/components/forge'

Preview

Stat

Components

27

+10 added

Coverage

94%

Stable

Issues

2

-3 fixed

Code Example

Props

PropTypeDefaultRequiredDescription
labelReact.ReactNode-YesMetric label
valueReact.ReactNode-YesMetric value
changeReact.ReactNode-NoSupporting change text
trend'up' | 'down' | 'neutral''neutral'NoChange text tone

Variants

updownneutral

Accessibility

  • Uses semantic text instead of color-only state
  • Card content reads in label, value, change order

Related Components