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

<Meta
	title="Components/Radio"
	component={Radio}
	argTypes={{
		disabled: {
			control: [true, false],
			description: "Whether the radio is disabled",
			name: "interactive",
			value: false
		}
	}}
/>

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

<Story
	name="Radio with Different Names and Values"
	args={{
		value: "jump again",
		choices: [
			["run", "run"],
			["swim", "swim"],
			["jump", "jump"],
			["jump", "jump again"]
		],
		label: "Radio"
	}}
/>