A range slider styled as a settings cell with label, value display, and step configuration.
import {CellSlider} from "@heroui-pro/react";
<CellSlider>
<CellSlider.Track>
<CellSlider.Fill />
<CellSlider.Thumb />
<CellSlider.Label />
<CellSlider.Output />
</CellSlider.Track>
</CellSlider>;A single cell with a label, a fill showing the value, and a formatted output.
HeroUI follows the BEM methodology to ensure component variants and states are reusable and easy to customize.
The Cell Slider component uses these CSS classes:
.cell-slider: Root wrapper.cell-slider__track: The visible cell row (Slider.Track).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).cell-slider__track--default: Default variant track styling.cell-slider__track--secondary: Secondary variant track stylingThe 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.
Resources