---
title: "Animated Counter | Free React & Tailwind Craft Component | Motion UI"
canonical: "https://blacknest.dev/motion/c/craft/animated-counter"
github_source: "https://github.com/Rkj0123/motion-ui-skill/blob/main/components/craft/animated-counter.tsx"
install_command: "npx motion-ui-skill add animated-counter"
dependencies: ["clsx","motion","react","tailwind-merge"]
category: "craft"
subcategory: "craft"
---

# Animated Counter

> A number that counts to its new value on a wheel of digits, like an odometer.

## Install

```bash
npx motion-ui-skill add animated-counter
```

## Dependencies

- `clsx`
- `motion`
- `react`
- `tailwind-merge`

## Usage

```tsx
"use client";

import { AnimatedCounter as AnimatedCounter } from "@/components/craft/animated-counter";

export function Example() {
  return (
    <div className="p-6">
      <AnimatedCounter />
    </div>
  );
}
```

## Source Files

- [components/craft/animated-counter.tsx](https://github.com/Rkj0123/motion-ui-skill/blob/main/components/craft/animated-counter.tsx)
- [lib/utils.ts](https://github.com/Rkj0123/motion-ui-skill/blob/main/lib/utils.ts)
