Card
A contained group of related content and actions.
A compact summary for a number that needs context.
npx shadcn@latest add @silicon-ui/metric-cardnpx shadcn@latest add @silicon-ui/metric-cardInstall the dependencies.
npm install motionCopy these files into your project. Shared files are skipped if you already have them.
components/silicon-ui/metric-card/metric-card.tsxcomponents/silicon-ui/metric-card/metric-card.module.csscomponents/silicon-ui/animated-counter/animated-counter.tsx sharedcomponents/silicon-ui/animated-counter/animated-counter.module.css sharedInstall the foundation once per app for the design and motion tokens: npx shadcn@latest add @silicon-ui/silicon-foundation
| Prop | Type | Default |
|---|---|---|
label* | string | — |
value* | number | — |
context* | string | — |
suffix | string | — |
change | string | — |