Skip to content

Function: ControlSlider()

ControlSlider(props): Element

Defined in: control-widgets.tsx:34

A range input bound to a numeric control. Bounds, step, and unit come from the control's meta (declare them there; sliders without min/max fall back to the browser's 0–100). Writes go through the control's validation.

Parameters

props

class?

string

Extra class(es) appended after "slider" (layout variants).

format?

(value) => string

Value formatter for the readout; defaults to value + the meta unit.

label?

string

Display label; defaults to the control's name.

of

ControlBox<number>

Returns

Element