Skip to content

Number Wheel

Pro

Pick a number by turning a wheel, from a minimum to a maximum in steps. It formats the number for the locale and can show a unit, such as min.

  • React 19
  • Tailwind CSS 4

Added Nov 9, 2026 · Pro license

Playground

Loading the preview

Props

Needs your Pro API key in GELATIN_UI_PRO_TOKEN. Set it up

Pro itemAPI key required

Number Wheel needs a Pro API key

Try the live preview for free. With Pro, the add command above puts the source in your project.

Files it adds
19
More Pro items, one API key
+327
Your coding agent runs it
1 cmd

$79$129once, for life

Already have Pro? Sign in to set up your API key.

Set min, max, and step. Add a unit after the column.

focus-minutes.tsx

NumberWheel

<div>
PropTypeDefaultDescription
namestring—The form field name: a hidden input sends the number.
layout"drum""flat"—drum bends the rows on a turning wheel; flat only fades them.
visibleItemsnumber—How many rows show, an odd number (5 by default).
readOnlyboolean—
invalidboolean—
size"default""lg""sm"—
variant"framed""plain"—
valuenumber—
defaultValuenumber—The first value; min when left out.
onValueChange—
minnumber0
maxnumber100
stepnumber1The space between two rows.
loopbooleanfalseTurn past max back to min (off by default: a number has ends).
formatOptionsNumberFormatOptions—How each row reads: digits, a currency, a percent (Intl.NumberFormat options).
unitReactNode—A unit after the column ("kg", "min"). Put it in aria-label too.
...props<div> attributes—Every other attribute goes to the <div>, with a ref.
  • Use it for a small range, such as 1 to 20, or 5 to 120 by 5.
  • Use formatOptions for a currency or a percent, and unit for a word after the number.
TabMoves to the next column. Each column is one tab stop.
Up ArroworDown ArrowTurns the column one row and sets the value.
Page UporPage DownTurns the column five rows.
HomeorEndGoes to the first or the last row that is not disabled.
Left ArroworRight ArrowMoves to the column before or after.

Each column is a range input: one tab stop, with the row text as its value text.

The mouse wheel turns a column only while it has focus, so the page scroll never stops on it.

On a touch screen every row is 44px high.

Flick
glide · a physics spring that keeps the flick speed and settles on the nearest row
Keys and taps
glide · spring to the new row

Built with

Installs with Number Wheel

Components
Wheel
  1. AddedNumber Wheel, with Wheel.
Open the release