Skip to content

io.input.slider ​

Represents a slider component.

Usage ​

ts
const value = await io.input.slider("How satisfied are you with Forge?", min=1, max=10)
python
value = await io.input.slider("How satisfied are you with Forge?", min=1, max=10)

example of Forge app with slider component

Props ​

defaultValue Optional ​

number
Default value for the input.

disabled Optional ​

boolean
Whether the input is disabled, preventing edits to the defaultValue.

helpText Optional ​

string
Optional label providing additional context. Supports inline markdown elements like bold, italics, and links.

max Required ​

number
Maximum allowed value.

min Required ​

number
Minimum allowed value.

step Optional ​

number
Step size for the slider.

Returns number ​