Skip to content
bahtuiv0.6.0

<baht-range>

Range slider. Controlled.

Basic

<baht-range value="40" label="Volume"></baht-range>

Stepped

show-value defaults on. It is a boolean attribute (presence = true), so show-value="false" does NOT turn it off. Set the property from JS instead: el.showValue = false. (Tracked for a false-default fix in the DS audit.)

<baht-range value="50" min="0" max="200" step="25" label="Budget"></baht-range>
NameTypeDefaultDescription
valuenumber0Current value
minnumber0Minimum
maxnumber100Maximum
stepnumber1Step
labelstring''Label above the slider
disabledbooleanfalseDisable
show-valuebooleantrueShow the numeric bubble
EventdetailDescription
nameCustomEvent
baht-change{ value }Value changed