<script>
import RangeSlider from "svelte-range-slider-pips";
let values = [0,0];
let min = 0;
let max = 0;
const expandiomus = () => {
max = 50;
min = -50;
values = [-10,10];
}
</script>
<RangeSlider bind:values bind:min bind:max range float pips all="label" suffix="°c" step={1} pipstep={5} />
<hr>{values}<hr>
<button on:click={expandiomus}>Biggerise</button>
<style>
:global(body) { padding: 50px; }
</style>