Carregando…
Carregando…
Carregando…Number counter with smooth easing animation on value change.
Click to animate
$ npx kikitocn add animated-numberimport { AnimatedNumber } from "@/components/ui/cn/animated-number/AnimatedNumber";
export function AnimatedNumberExample() {
return (
<AnimatedNumber value={1234} duration={800} />
);
}| Prop | Tipo | Padrão | Descrição |
|---|---|---|---|
value* | number | — | Valor numérico a exibir |
duration | number | 800 | Duração da animação (ms) |
format | (value: number) => string | — | Formatador do valor exibido |
className | string | — | Classes CSS extras |