Put the label and the value in the face. Save the value when a drag ends.
room-temperature.tsx
ThermostatDial
<div>| Prop | Type | Default | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| class | string | — | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| thumb | Omit<SliderThumbProps, "index"> | — | Props for every default thumb: getAriaLabel, getAriaValueText, aria-label, disabled. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| unit | string | "°" | The text after each number. Default °. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| read | boolean | false | The value shows and can be focused and submitted, but not changed. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| locale | string | — | The locale of the numbers. Default: the DisplayLocaleProvider locale, else en-US. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
From Base UISlider.RootBase UI docs | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| default | number | 21 | The uncontrolled value of the slider when it's initially rendered. To render a controlled slider, use the value prop instead. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| disabled | boolean | false | Whether the slider should ignore user interaction. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| format | NumberFormatOptions | ONE_DECIMAL | Options to format the value. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ThermostatDialTicks
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
ThermostatDialFace
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
ThermostatDialLabel
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| class | string | — | |
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
ThermostatDialValue
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| class | string | — | |
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
ThermostatDialRange
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
| Right ArroworUp Arrow | Raises the value one step. |
|---|---|
| Left ArroworDown Arrow | Lowers the value one step. |
| Page UporPage DownorShiftArrow | Moves the value one large step. |
| HomeorEnd | Goes to the lowest or the highest value. |
Built with
Installs with Thermostat Dial











