Skip to main content

Variable: CountingNumber

@arolariu/components


@arolariu/components / CountingNumber

Variable: CountingNumber

const CountingNumber: ForwardRefExoticComponent<CountingNumberProps & RefAttributes<HTMLSpanElement>>

Defined in: components/ui/counting-number.tsx:47

Animates a number value with a spring and writes the formatted value into a span.

Remarks

  • Animated component using the motion library
  • Renders a <span> element
  • Styling via CSS Modules with --ac-* custom properties
  • Client-side only ("use client" directive)

Example

<CountingNumber number={1250} />

See

CountingNumberProps for available props

// was this page useful?