Slider

A range input component for selecting a single value or a range of values.

24 px

Installation

CLI

Install the component using the StarUI CLI:

star add slider

Examples

States

Default, disabled, error, and helper text states

100 %
100 %
48 px

Blur above 40px degrades export quality

4 px

Soft edge width for selection masks

Live Preview

Slider drives font size in real time via signal binding

Type Settings

Adjust font size and preview live

Font size18

The quick brown fox jumps over the lazy dog

Image Adjustments

Brightness, contrast, and saturation sliders with live CSS filter preview and batch reset

Image Adjustments

Filter preview

100 %
100 %
100 %

Color Mixer

RGB channel sliders with +/- buttons driving a live color swatch

Color Mixer

Blend RGB channels to pick a color

R
G
B

Vertical

Vertical sliders controlling per-layer opacity with live preview

Layer Opacity

Control transparency per layer

Background
Artwork
Text

Form & Range Slider

Export form with single-value sliders, a dual-thumb range slider for resolution bounds, and a derived file-size estimate

Export Settings

Configure output quality and resolution

85 %
150

72 for screen, 300+ for print

1024 px1920 px
Est. size: (($sl_exp_q * $sl_exp_dpi) / 100) KB

API Reference

Props

Prop Type Default Description
value list[float] | float | None None Controlled value. When provided, component is controlled
default_value list[float] | float | None None Initial value for uncontrolled mode. Defaults to [min] if not specified
signal str | Signal | None None Signal name or Signal object for reactive two-way binding
min float 0 Minimum value
max float 100 Maximum value
step float 1 Step increment
orientation "horizontal" | "vertical" "horizontal" Slider orientation
disabled bool False Disables the slider
name str | None None Form input name
show_value bool False Display current value
value_text str | list[str] | None None Custom text suffix to display after numeric value
aria_label str | None None Accessible label for the slider input
cls str '' Additional CSS classes
id str | None auto-generated HTML id for the slider input
Component Description
Slider Main slider component for selecting single values using native <input type='range'>. Delegates to RangeSlider when given a list of 2+ values.
SliderWithLabel Convenience wrapper with label, helper text, and error text
RangeSlider Dual-thumb slider for selecting value ranges
SliderTrack Track element (sub-component)
SliderRange Filled range element (sub-component)