File size: 549 Bytes
0ad74ed
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
<script>
	import { Meta, Template, Story } from "@storybook/addon-svelte-csf";
	import Number from "./Index.svelte";
</script>

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

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

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

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

<Story
	name="Number in disabled state"
	args={{
		interactive: false
	}}
/>

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