Text

Counter

Numbers that spring to their value with a whisper of overshoot — on scroll and whenever they change.

Paste it into ChatGPT, Claude, Cursor or v0.
value48200
format
stiffness60
damping16

Usage

import { Counter } from '@vizzele/react';

<Counter value={48200} suffix=" stars" />
<Counter value={revenue} format={{ style: 'currency', currency: 'USD' }} />

Props

PropTypeDefaultDescription
valuenumber—Target; changes animate.
fromnumber0Start value.
decimalsnumber0Fraction digits.
formatIntl.NumberFormatOptions—Currency, compact, percent…
prefix / suffixstring—Text around the number.
springSpringConfig | SpringPreset{ stiffness: 60, damping: 16 }Feel.
inViewbooleantrueWait until visible to start.

Accessibility

  • aria-label always holds the final value. Tabular figures keep the width steady.