A range slider styled as a settings cell with label, value display, and step configuration.
Import the CellSlider component and access all parts using dot notation.
import {CellSlider} from "@heroui-pro/react";
<CellSlider>
<CellSlider.Label />
<CellSlider.Output />
<CellSlider.Track>
<CellSlider.Fill />
<CellSlider.Thumb />
</CellSlider.Track>
</CellSlider>.cell-slider - Root wrapper.cell-slider__track - The visible cell row (Slider.Track).cell-slider__track--default - Default variant track styling.cell-slider__track--secondary - Secondary variant track styling.cell-slider__fill - Accent tint showing the current value.cell-slider__thumb - Transparent hit area with a ::after pill indicator.cell-slider__label - Leading text label (absolutely positioned left).cell-slider__output - Value display (absolutely positioned right)The root component. Wraps HeroUI Slider with cell-style layout. Always renders in horizontal orientation.
| Prop | Type | Default | Description |
|---|---|---|---|
variant | 'default' | 'secondary' | 'default' | Visual style variant |
Also supports all HeroUI Slider props except variant and orientation.
The visible cell row serving as the slider track. Contains fill, thumb, label, and output as children.
Also supports all HeroUI Slider.Track props.
Subtle accent tint showing the current slider value.
Also supports all HeroUI Slider.Fill props.
Transparent hit area for drag and keyboard accessibility. The visible indicator is a ::after pseudo-element (thin 3px pill).
Also supports all HeroUI Slider.Thumb props.
Leading text label, absolutely positioned on the left.
| Prop | Type | Default | Description |
|---|---|---|---|
children | ReactNode | - | Label text |
Also supports all native span HTML attributes.
Value display, absolutely positioned on the right.
Also supports all HeroUI Slider.Output props.