R 8R 12
4
896 × 54
ComposeUI
ComponentsChartsBlocksDocs

Let's have coffee?

R 16
Subham avatar
Want to work together? Just want to chat?
Subham avatar
Check out my portfolio: subham12r.dev
Subham avatar
Or grab 15 mins on my calendar:
Coffee chat
Portfoliosubham12r.dev
Mail
hello@subham12r.dev
Socials
X / Twitter·GitHub·LinkedIn
Explore
Components·Charts·Blocks·Docs

Designed and built by Subham

ComposeUIComposeUI
© 2026 ComposeUI·React + Tailwind v4
012345678901234567890123456789100

Rolling Counter

Fill
Stroke
Color

Rolling Counter

InputsNew

Tactile odometer stepper with vertical digit slot transitions, press-and-hold repeat, and edge-fade masking.

"use client"; import { useState } from "react";import { RollingCounter } from "@/components/ui/rolling-counter"; export function QuantityStepper() {  const [value, setValue] = useState(100);  return <RollingCounter value={value} onChange={setValue} min={0} max={999} />;}

Install

Add it with the ComposeUI CLI, or copy the source manually.

$ bunx --bun compose-ui-cli add rolling-counter

API Reference

Prop
Type
Default
value
number

Controlled numeric value animating vertically across digit columns.

—
defaultValue
number

Initial value when uncontrolled.

100
min
number

Lower bound clamping decrement holds and arrow keys.

0
max
number

Upper bound clamping increment holds and arrow keys.

9999

Related components

#
R 12
opacity64%
Slider
R 12
⌘K
Input
R 12
thanks for visiting.
Signature

Updated December 2026

R 12
Previous

Signature

R 12
Next

Blur Sweep Logos