Skip to main content

Stat Delta

A change-focused stat display with large directional arrow and color-coded indicators. Ideal for quick status checks and performance deltas.

Installation

$ npx shadcn@latest add @orecus/stat-delta
Dependencies:
lucide-reactmotion
Registry:
skeleton@orecus/color-utils@orecus/card@orecus/use-reduced-motion@orecus/use-animated-number

Component

Compact delta indicators for showing changes.

Revenue Growthvs last period
Bounce Rateimproved!
Conversionno change
Net Profit
Unsubscribes
CTR

Props

PropTypeDefaultDescription
value*stringChange value (e.g., '+23.4%', '-$1,200')
label*stringLabel for the change
direction*'up' | 'down' | 'neutral'Direction of change
descriptionReactNodeOptional description text
colorThemeColorColor override (auto-set by direction if not specified)
iconSize'sm' | 'md' | 'lg''md'Size of the arrow icon
animatedbooleantrueWhether to animate text elements on mount
animateValuebooleantrueWhether to animate numeric values with a counting effect
loadingbooleanfalseShows skeleton loading state
cardPropsCardPropsProps to pass to the Card wrapper
classNamestringAdditional CSS classes