Early accessFull site coming soon. Pro is $49.99 a year. See pricing ›

Nexus UI

Thermo Dial, animated React component

A thermostat ring you drag round or step with the arrow keys. Ticks light up to the set point, the glow shifts from cool blue to warm orange, the number rolls and the label says whether it is heating or cooling toward the room temperature.

  • Pro
  • Inputs & Controls
  • Spring

Play with it

Move the controls and watch it change. Copy code gives you a snippet with only the props you changed.

Heating21.0°Room 19.5°
Drag round the ring.

Props

PropTypeDefaultWhat it does
room19.5Current room temperature; marks a tick and decides Heating, Cooling or Holding.
defaultValue21Target temperature the dial starts at.
min10Lowest settable temperature (start of the arc).
max30Highest settable temperature (end of the arc).
step0.5Increment for dragging and the arrow keys.
onChange—Called with the new target when the user drags or uses the keyboard.
autoplayfalseTurns the dial to a few set points until someone touches it.