Forms

Range

A range slider is used to modify a value by sliding a handle along a track, allowing for precise adjustments.

Basic example

Default

Basic input `range` example.

Size

Range sizes

The Range inputs are stacked in three sizes:extra small `xs`, small `sm`, default, and large `lg`.

Color

Semantic colors

The standard format for range is accompanied by the component class `range` and modifier class `range-{semantic-color}`.

Custom color

Utilize `[--range-color:]` to incorporate your custom color.

Illustrations

Disabled

Apply the `disabled` boolean attribute to a range input to disable pointer events and prevent focusing.

Min and max

Range inputs inherently have default values for `min` and `max` - 0 and 100, respectively. You can customize these values using the `min` and `max` attributes.

Steps

The `step` attribute specifies the interval between legal numbers in an `<input>` element.

| | | | |
Class referenceThe component, style, color, state, size and modifier classes available for this component.
ClassTypeDescription
rangecomponentRange input
range-primarycolorAdds 'primary' to range
range-secondarycolorAdds 'secondary' to range
range-accentcolorAdds 'accent' to range
range-infocolorAdds 'info' to range
range-successcolorAdds 'success' to range
range-warningcolorAdds 'warning' to range
range-errorcolorAdds 'error' to range
range-xssizeExtra small range
range-smsizeSmall range
range-mdsizeMedium (Default) range
range-lgsizeLarge range
range-xlsizeExtra Large range