πŸš€ 8.9 Released! β†’ ⚑️ New Node-API Engine Preview, πŸ“² ns widget ios, πŸ’… Tailwind v4 and more...
Read Announcement

<Slider> is a UI component that provides a slider control for picking values within a specified numeric range.

xml
<Slidervalue="75"minValue="0"maxValue="100" />
html
<Slidervalue="75"minValue="0"maxValue="100" />
tsx
<slidervalue="{sliderValue}"onValueChange={sliderValueChanged} />
tsx
<slider
width={300}
value={sliderValue()}
on:valueChange={handleChange}
/>
svelte
<sliderbind:value={sliderValue} />
vue
<Sliderv-model="sliderValue"/>

Props ​

value ​

ts
value: number

Gets or sets the currently selected value of the slider.

Defaults to 0.

minValue ​

ts
minValue: number

Gets or sets the minimum value of the slider.

maxValue ​

ts
maxValue: number

Gets or sets the maximum value of the slider.

...Inherited ​

For additional inherited properties, refer to the API Reference.

Events ​

valueChange ​

ts
on('valueChange', (args:PropertyChangeData) => {
constslider= args.object asSlider
 console.log('Slider value changed to', args.value)
})

Emitted when the value of the slider changes.

See PropertyChangeData.

Native component ​

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /