Slider
A draggable <button> to choose a value between a minimum and maximum
Code
<script lang="ts">
import { Slider } from '@geoffcox/sterling-svelte';
</script>
<Slider />
Members
| Property Name | Type | Default | Comment | | disabled | boolean | false |
| max | number | 100 |
| min | number | 0 |
| step | number | 1 |
| precision | number | undefined | undefined |
| value | number | 0 |
| variant | string | '' |
| vertical | boolean | false |
| Event Name | Data | Comment | | change | { value: number } |
Considerations
- Includes HTMLDivElement props, event, and methods
Anatomy
<div class="sterling-slider">
<div class="container">
<div class="track" />
<div class="fill" />
<div class="thumb" />
<div>
</div>