pnpm dlx shadcn@latest add @saturation-ui/animated-numberTailwind v4 — Source Scanning
The public shadcn registry installs component source into your project. If Tailwind v4 isn't scanning your components directory, add this to your CSS entry file:
@source "../components";This ensures all utility classes in CVA variants and data attribute selectors are included in your build.
import { AnimatedNumber } from "@/components/ui/animated-number"<AnimatedNumber value={1234} />Load Budget
980,100Loads from 99% of target with a gradual animation
| Prop | Type | Default | Description |
|---|---|---|---|
value* | number | — | The target number to animate toward. |
className | string | — | Additional CSS classes. |
springOptions | SpringOptions | — | Motion spring configuration for the animation. |
as | React.ElementType | span | The HTML element type to render. |
Total Amount
Total Views
1,234,000Score
0