Skip to content

Thermostat Dial

Pro

Set a temperature on a round dial: drag around the ring, or use the arrow keys.

  • Base UI
  • Motion
  • React 19
  • Tailwind CSS 4

Added Nov 21, 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

Thermostat Dial 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
30
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.

Put the label and the value in the face. Save the value when a drag ends.

room-temperature.tsx

ThermostatDial

<div>
PropTypeDefaultDescription
classNamestring—
thumbPropsOmit<SliderThumbProps, "index">—Props for every default thumb: getAriaLabel, getAriaValueText, aria-label, disabled.
unitstring"°"The text after each number. Default °.
readOnlybooleanfalseThe value shows and can be focused and submitted, but not changed.
localestring—The locale of the numbers. Default: the DisplayLocaleProvider locale, else en-US.
From Base UISlider.RootBase UI docs
defaultValuenumber21The uncontrolled value of the slider when it's initially rendered. To render a controlled slider, use the value prop instead.
disabledbooleanfalseWhether the slider should ignore user interaction.
formatNumberFormatOptionsONE_DECIMALOptions to format the value.
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

ThermostatDialTicks

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

ThermostatDialFace

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

ThermostatDialLabel

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

ThermostatDialValue

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

ThermostatDialRange

<div>
PropTypeDefaultDescription
...props<div> attributes—Every other attribute goes to the <div>, with a ref.
  • Use it as the main control of a room or device screen, where the value is the point of the page.
  • Set min, max, step, and unit for Fahrenheit or another unit. The number gets smaller to stay in the face.
  • Use onValueCommitted to save the value once, when a drag or a key press ends.
  • To set a value on a straight track in a form or a toolbar, use the Slider.
  • To set an angle from 0° to 360°, use the Angle Dial.
Right ArroworUp ArrowRaises the value one step.
Left ArroworDown ArrowLowers the value one step.
Page UporPage DownorShiftArrowMoves the value one large step.
HomeorEndGoes to the lowest or the highest value.

The value is a range input: one tab stop, with the formatted value and the unit as its value text.

The ring turns clockwise in every text direction, so the Right and Up arrows always raise the value.

The ring around the face is 44px wide or more on every size, so a finger can always take it. On touch, the center of the face scrolls the page.

Needle
follow · a spring with a small overshoot, as a real pointer
Number
roll · the number counts to each new value, with no bounce
Value tick
hover · the tick at the value grows
Glow
fade · the glow in the color of the value grows while you drag

Built with

Installs with Thermostat Dial

Components
Direction,Slider
  1. AddedThermostat Dial, with Direction, Slider.
Open the release