@@ -41,35 +41,43 @@ export const WithDefaultValue: Story = {
4141} ;
4242
4343export const Orientation : Story = {
44- render : ( ) => {
44+ render : ( args ) => {
4545 return (
4646 < div
4747 className = { css ( { display : "flex" , flexDirection : "column" , gap : "32" } ) }
4848 >
4949 < RadioGroup
50+ { ...args }
5051 name = "vertical-orientation"
5152 label = "์ธ๋ก ๋ฐฉํฅ (Vertical)"
5253 orientation = "vertical"
5354 defaultValue = "apple"
54- >
55- < Radio value = "apple" > ์ฌ๊ณผ</ Radio >
56- < Radio value = "banana" > ๋ฐ๋๋</ Radio >
57- < Radio value = "orange" > ์ค๋ ์ง</ Radio >
58- </ RadioGroup >
55+ />
5956
6057 < RadioGroup
58+ { ...args }
6159 name = "horizontal-orientation"
6260 label = "๊ฐ๋ก ๋ฐฉํฅ (Horizontal)"
6361 orientation = "horizontal"
6462 defaultValue = "banana"
65- >
66- < Radio value = "apple" > ์ฌ๊ณผ</ Radio >
67- < Radio value = "banana" > ๋ฐ๋๋</ Radio >
68- < Radio value = "orange" > ์ค๋ ์ง</ Radio >
69- </ RadioGroup >
63+ />
7064 </ div >
7165 ) ;
7266 } ,
67+ argTypes : {
68+ name : {
69+ control : false ,
70+ } ,
71+ label : {
72+ control : false ,
73+ } ,
74+ orientation : {
75+ control : false ,
76+ } ,
77+ defaultValue : {
78+ control : false ,
79+ } ,
80+ } ,
7381} ;
7482
7583export const GroupDisabled : Story = {
@@ -115,79 +123,69 @@ export const ItemDisabled: Story = {
115123} ;
116124
117125export const Tones : Story = {
118- render : ( ) => {
126+ render : ( args ) => {
119127 return (
120128 < div
121129 className = { css ( { display : "flex" , flexDirection : "column" , gap : "32" } ) }
122130 >
123131 < RadioGroup
132+ { ...args }
124133 name = "neutral-tone"
125134 label = "์ค๋ฆฝ ์์กฐ (Neutral)"
126- defaultValue = "apple"
127135 tone = "neutral"
128- >
129- < Radio value = "apple" > ์ฌ๊ณผ</ Radio >
130- < Radio value = "banana" > ๋ฐ๋๋</ Radio >
131- < Radio value = "orange" > ์ค๋ ์ง</ Radio >
132- </ RadioGroup >
136+ />
133137
134138 < RadioGroup
139+ { ...args }
135140 name = "brand-tone"
136141 label = "๋ธ๋๋ ์์กฐ (Brand)"
137- defaultValue = "apple"
138142 tone = "brand"
139- >
140- < Radio value = "apple" > ์ฌ๊ณผ</ Radio >
141- < Radio value = "banana" > ๋ฐ๋๋</ Radio >
142- < Radio value = "orange" > ์ค๋ ์ง</ Radio >
143- </ RadioGroup >
143+ />
144144
145145 < RadioGroup
146+ { ...args }
146147 name = "danger-tone"
147148 label = "์ํ ์์กฐ (Danger)"
148- defaultValue = "apple"
149149 tone = "danger"
150- >
151- < Radio value = "apple" > ์ฌ๊ณผ</ Radio >
152- < Radio value = "banana" > ๋ฐ๋๋</ Radio >
153- < Radio value = "orange" > ์ค๋ ์ง</ Radio >
154- </ RadioGroup >
150+ />
155151
156152 < RadioGroup
153+ { ...args }
157154 name = "warning-tone"
158155 label = "๊ฒฝ๊ณ ์์กฐ (Warning)"
159- defaultValue = "apple"
160156 tone = "warning"
161- >
162- < Radio value = "apple" > ์ฌ๊ณผ</ Radio >
163- < Radio value = "banana" > ๋ฐ๋๋</ Radio >
164- < Radio value = "orange" > ์ค๋ ์ง</ Radio >
165- </ RadioGroup >
157+ />
166158
167159 < RadioGroup
160+ { ...args }
168161 name = "success-tone"
169162 label = "์ฑ๊ณต ์์กฐ (Success)"
170- defaultValue = "apple"
171163 tone = "success"
172- >
173- < Radio value = "apple" > ์ฌ๊ณผ</ Radio >
174- < Radio value = "banana" > ๋ฐ๋๋</ Radio >
175- < Radio value = "orange" > ์ค๋ ์ง</ Radio >
176- </ RadioGroup >
164+ />
177165
178166 < RadioGroup
167+ { ...args }
179168 name = "info-tone"
180169 label = "์ ๋ณด ์์กฐ (Info)"
181- defaultValue = "apple"
182170 tone = "info"
183- >
184- < Radio value = "apple" > ์ฌ๊ณผ</ Radio >
185- < Radio value = "banana" > ๋ฐ๋๋</ Radio >
186- < Radio value = "orange" > ์ค๋ ์ง</ Radio >
187- </ RadioGroup >
171+ />
188172 </ div >
189173 ) ;
190174 } ,
175+ argTypes : {
176+ name : {
177+ control : false ,
178+ } ,
179+ label : {
180+ control : false ,
181+ } ,
182+ tone : {
183+ control : false ,
184+ } ,
185+ } ,
186+ args : {
187+ defaultValue : "apple" ,
188+ } ,
191189} ;
192190
193191export const Controlled = ( ) => {
0 commit comments