Skip to content
VenusUI
Get started

Animated Stats

Four key numbers that count up as they scroll into view.

Preview

Installation

npx shadcn@latest add @venusui/stats-01

Run this in a project set up with shadcn. If you haven’t set it up yet, run npx shadcn@latest init first.

Files added to your project

Paths use the default shadcn aliases. The CLI follows the aliases in your components.json.

  • @/components/ui/number-ticker.tsxfrom number-ticker
  • @/components/stats-01.tsx

Usage

The code behind the preview above.

stats-01-demo.tsx

import { Stats01 } from "@/components/stats-01"

export default function Stats01Demo() {
  return <Stats01 />
}

API reference

No props. Numbers are in the stats array at the top of the file.

Requirements

  • VenusUI number-ticker (the CLI installs it), React 19 and Tailwind CSS v4.

Customization

  • The numbers are placeholders. Replace them with real, current figures.
  • Each stat accepts decimals and a suffix such as % or ms.
  • Change locale on NumberTicker to format numbers for your audience, e.g. en-IN.

Accessibility

  • Stats are a description list: the label is the term and the number its value.
  • Screen readers get each final number, not the counting digits.

Troubleshooting

Numbers stay at 0.
They start counting when they scroll into view. Make sure the section is actually visible on the page.
Unknown registry "@venusui"
Your shadcn CLI couldn’t find the namespace in the shadcn registry index. Use the latest CLI (npx shadcn@latest), install by URL, or register it with its address: npx shadcn@latest registry add @venusui=https://venusui.com/r/{name}.json.
No components.json found
Run npx shadcn@latest init in your project first.