Your ImageYour Image
  • About
  • Templates10
  • Blocks81New
  • Icons1635
  • Graphics4K
  • Components107New
  • About
  • Components
  • Pricing
  • Contact
Book an Intro call
Book an Intro call
  • About
  • Works
  • Pricing
  • Templates
  • Blocks
  • components
  • Graphic
  • Backgrounds
  • Designs
  • Icons
  • Logos
  • Flags
  • Privacy
  • Terms
  • Contact
© 2025Made with by Ali Imam

  • Counter Number
  • Font Weight
  • Rainbow Effect

Counter Number

PreviousNext

An animated numeric display component with smooth counting, formatting, sizes, and semantic color variants.

Installation

pnpm dlx shadcn@latest add https://aliimam.in/r/counter-number.json

Usage

import { CounterNumber } from "@/components/ui/counter-number"
<div className="flex flex-wrap gap-8 items-end">
  {/* Default */}
  <CounterNumber value={12345} />
 
  {/* With prefix/suffix */}
  <CounterNumber value={86} suffix="%" size="xl" color="success" />
 
  {/* Decimals */}
  <CounterNumber value={3.14159} decimalPlaces={3} size="lg" />
 
  {/* Currency */}
  <CounterNumber value={1299.99} currency="USD" decimalPlaces={2} size="xl" color="primary" />
 
  {/* Locale + separator */}
  <CounterNumber value={1000000} locale="de-DE" separator="." size="lg" />
 
  {/* Mono spacing for layout stability */}
  <CounterNumber value={2025} preserveAspectRatio className="font-medium" />
</div>
Grid PatternFont Weight

On This Page

InstallationUsage