Put the label and the value inside the row. Use ScrubSliderGroup for a panel of rows.
corner-radius.tsx
ScrubSlider
<div>| Prop | Type | Default | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| class | string | — | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| size | "default""lg""sm" | "default" | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| thumb | "bar""caps""fat""line""pill" | "bar" | The look of the thumb: bar (default), line, pill, caps, or fat. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ticks | number | false | — | The number of spaces between ticks. Default: one tick per step, and at most 12 spaces: a finer step thins out to a nice interval (1, 2, 2.5, or 5 × 10ⁿ, kept a whole number of steps). false draws no ticks. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| control | ReactNode | — | The row, in place of the default: a ScrubSliderControl with a ScrubSliderTrack and your label and value inside. With it, children and thumbProps are not used. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| thumb | Omit<ScrubSliderThumbProps, "index"> | — | Props for the default thumb: getAriaLabel, getAriaValueText, aria-label. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
From Base UISlider.RootBase UI docs | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| default | number | — | 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 | — | Options to format the value. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ScrubSliderControl
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| class | string | — | |
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
ScrubSliderTrack
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| class | string | — | |
| thumb | Omit<ScrubSliderThumbProps, "index"> | — | Props for the default thumb. |
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
ScrubSliderIndicator
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| class | string | — | |
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
ScrubSliderTicks
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
ScrubSliderThumb
<div>| Prop | Type | Default | Description | |||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| class | string | — | ||||||||||||||||||||||||||||||||||||||||||||||
From Base UISlider.ThumbBase UI docs | ||||||||||||||||||||||||||||||||||||||||||||||||
| disabled | boolean | false | Whether the thumb should ignore user interaction. | |||||||||||||||||||||||||||||||||||||||||||||
| aria-valuetext | string | — | A string value forwarded to the aria-valuetext attribute of the input. Ignored when getAriaValueText is provided. | |||||||||||||||||||||||||||||||||||||||||||||
| get | ((index: number) => string) | null | — | A function which returns a string value for the aria-label attribute of the input. | |||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. | |||||||||||||||||||||||||||||||||||||||||||||
ScrubSliderLabel
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| class | string | — | |
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
ScrubSliderValue
<output>| Prop | Type | Default | Description |
|---|---|---|---|
| class | string | — | |
From Base UISlider.ValueBase UI docs | |||
| children | — | ||
| render | — | Allows you to replace the component's HTML element with a different tag, or compose it with another component. Accepts a ReactElement or a function that returns the element to render. | |
| style | — | Style applied to the element, or a function that returns a style object based on the component's state. | |
| ...props | <output> attributes | — | Every other attribute goes to the <output>, with a ref. |
ScrubSliderGroup
<fieldset>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <fieldset> attributes | — | Every other attribute goes to the <fieldset>, with a ref. |
| Arrow keys | Changes the value by one step. |
|---|---|
| Shiftarrow keysorPage UporPage Down | Changes the value by largeStep. |
| HomeorEnd | Goes to the minimum or the maximum. |
| Enter | Opens the text edit of the value. In the edit, Enter saves. |
| Escape | In the text edit: cancels the edit. |







