Installation
pnpm dlx shadcn add @eased-pro/stat-tilenpx shadcn add @eased-pro/stat-tileyarn dlx shadcn add @eased-pro/stat-tilebunx --bun shadcn add @eased-pro/stat-tileInstalls from the @eased-pro registry and MCP server. · Already have Pro? Sign in.
Install the dependencies
pnpm add motionnpm install motionyarn add motionbun add motionAdd the Eased pieces it builds on
Copy each item’s files the same way, or install them with the CLI:
Add the files
- components/eased/stat-tile/stat-tile.tsx
Source is included with Eased Pro. Members download the files with the CLI command above, or through the MCP server.
Keep the folder layout
The files import each other by relative path (
../lib/motion), so keep each one at the path shown, undercomponents/eased/.
Props
| Prop | Type | Default | |
|---|---|---|---|
label | string | ||
value | number | Rolls when it changes. | |
format / locale | Intl.NumberFormatOptions / locale | ||
delta | number | Ratio: 0.124 is +12.4%. | |
invert | boolean | false | Lower is better: a fall reads as good. |
caption | string | The comparison; hidden in tiles under 9rem. | |
values | number[] | The sparkline. | |
color | string | var(--eased-chart-1) | Sparkline colour. |
index | number | 0 | Entrance order: 60ms per step. |
action | ReactNode | Replaces the delta in the header row. |
Wrap tiles in ChartRangeProvider (from _primitives/chart-core/range) so every tile and chart on the page morphs on the same beat.
Motion signature: tiles rise 60ms apart once; on a range change the value and delta roll, the delta's arrow turns and re-tints, and the sparkline morphs from its current shape. A fall is warning, never danger.