logo-icon
STW UI

Slider

Slider is used to select a value by sliding a handle.

Usage

svelte
import { Slider } from 'stwui';
// OR
import Slider from 'stwui/slider'; // for tree shaking

Basic

Type

Step


Show Step

0% |25% |50% |75% |100% |

0% |10% |20% |30% |40% |50% |60% |70% |80% |90% |100% |

Slider Props

value number 0
min number 0
max number 100
step number 1
showStep boolean false
type 'info' | 'warn' | 'error' | 'success' info

Slider Class Identifiers

stwui-slider-wrapper
stwui-slider