A spotlight card with a counting number and a sparkline that draws itself.
Install it the shadcn way: copy the source file into your project. It uses CSS 3D, Tailwind CSS v4 and Framer Motion, no WebGL.
| Prop | Type | Default | Description |
|---|---|---|---|
| label | string | Name of the metric, shown above the value. | |
| value | number | Current value of the metric. Counts up when shown. | |
| prefix | string | Text before the value, e.g. "quot;. | |
| suffix | string | Text after the value, e.g. "%". | |
| decimals | number | Number of digits shown after the decimal point. | |
| delta | number | Change versus the previous period, in percent. | |
| data | number[] | Points for the sparkline. At least two. | |
| className | string | Extra classes added to the outer element. |