Const
A slider whose value can persist: the preset (<SliderWidget label='Volume' />), and Root, the stored value, to compose with the styled Slider parts.
<SliderWidget label='Volume' />
Root
Slider
The common slider: one thumb on its track, whose value can persist. The root's own props pass through; any other arrangement composes SliderWidget.Root.
SliderWidget.Root
Slider props.
<SliderWidget.Root data-key='practic_app_volume' data-attr='value'> <Slider.Value /> <Slider.Control> <Slider.Track> <Slider.Indicator /> <Slider.Thumb aria-label='Volume' /> </Slider.Track> </Slider.Control></SliderWidget.Root> Copy
<SliderWidget.Root data-key='practic_app_volume' data-attr='value'> <Slider.Value /> <Slider.Control> <Slider.Track> <Slider.Indicator /> <Slider.Thumb aria-label='Volume' /> </Slider.Track> </Slider.Control></SliderWidget.Root>
A slider whose value can persist: the preset (
<SliderWidget label='Volume' />), andRoot, the stored value, to compose with the styledSliderparts.