File size: 599 Bytes
a03b3ba
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<script>
	import { Meta, Template, Story } from "@storybook/addon-svelte-csf";
	import Slider from "./Index.svelte";
</script>

<Meta title="Components/Slider" component={Slider} />

<Template let:args>
	<Slider {...args} />
</Template>

<Story
	name="Slider with min 0 and max 100"
	args={{
		minimum: 0,
		maximum: 100
	}}
/>

<Story
	name="Slider with step of 10"
	args={{
		step: 10
	}}
/>

<Story
	name="Slider with hidden label"
	args={{
		show_label: false
	}}
/>

<Story
	name="Slider with min 0 and max 100 and default value of 50"
	args={{
		value: 50,
		minimum: 0,
		maximum: 100
	}}
/>