Skip to content

Wheel

Free

A picker of rows that turn under one band and stop on a value, as on a phone. Drag, flick, tap, scroll, or use the keys.

  • React 19
  • Tailwind CSS 4

Added Nov 9, 2026 · MIT + Commons Clause

Playground

Loading the preview

Props

Put a WheelIndicator first, then one WheelColumn for each value.

repeat-picker.tsx

Wheel

<fieldset>
PropTypeDefaultDescription
size"default""lg""sm""default"
variant"framed""plain""framed"
layout"drum""flat""drum"drum bends the rows on a turning wheel; flat only fades them.
visibleItemsnumber5How many rows show, an odd number (5 by default).
readOnlybooleanfalse
invalidbooleanfalse
...props<fieldset> attributes—Every other attribute goes to the <fieldset>, with a ref.

WheelIndicator

<div>
PropTypeDefaultDescription
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

WheelSeparator

<span>
PropTypeDefaultDescription
...props<span> attributes—Every other attribute goes to the <span>, with a ref.

WheelUnit

<span>
PropTypeDefaultDescription
...props<span> attributes—Every other attribute goes to the <span>, with a ref.

WheelColumn

<div>
PropTypeDefaultDescription
itemsRequired—
valueValue—
defaultValueValue—
onValueChange—
loopbooleantrueTurn past the last row to the first (on by default).
align"center""end""start""center"Where the text sits in the row.
namestring—The form field name: a hidden input sends the value as text.
disabledbooleanfalse
readOnlybooleanfalse
emptyLabelReactNode"No options"The text of a column with no items. Default "No options".
aria-labelstring—
aria-labelledbystring—
...props<div> attributes—Every other attribute goes to the <div>, with a ref.
  • Use it on touch screens, where people flick through a short list of choices.
  • Use one WheelColumn per value, with WheelSeparator or WheelUnit between columns.
  • Turn loop off for a list with real ends, such as a list of durations.
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
  1. AddedWheel.
Open the release