@@ -266,7 +266,7 @@ const Template: StoryFn<typeof Form> = (args) => {
266
266
return ! ! email ;
267
267
} }
268
268
>
269
- < TextInput type = "email" label = "Email field" />
269
+ < TextInput type = "email" size = "small" label = "Email field" />
270
270
</ Field >
271
271
< Field name = "password" >
272
272
< PasswordInput label = "Password field" />
@@ -306,7 +306,7 @@ const Template: StoryFn<typeof Form> = (args) => {
306
306
</ CheckboxGroup >
307
307
</ Field >
308
308
< Field name = "radioGroup" label = "Radio group" >
309
- < Radio . Group >
309
+ < Radio . Group orientation = "horizontal" >
310
310
< Radio value = "one" > One</ Radio >
311
311
< Radio value = "two" > Two</ Radio >
312
312
< Radio value = "three" > Three</ Radio >
@@ -322,7 +322,7 @@ const Template: StoryFn<typeof Form> = (args) => {
322
322
name = "switch"
323
323
rules = { [ { required : true , message : 'This field is required' } ] }
324
324
>
325
- < Switch label = "Switch field" / >
325
+ < Switch label = "Switch field" > Switch value </ Switch >
326
326
</ Field >
327
327
< Field
328
328
name = "number"
@@ -331,6 +331,7 @@ const Template: StoryFn<typeof Form> = (args) => {
331
331
< NumberInput label = "Number field" minValue = { - 1 } />
332
332
</ Field >
333
333
< Field
334
+ label = "Slider"
334
335
name = "slider"
335
336
rules = { [ { required : true , message : 'This field is required' } ] }
336
337
>
@@ -352,6 +353,9 @@ export const FormInsideDialog: StoryFn = () => {
352
353
353
354
export const Default = Template . bind ( { } ) ;
354
355
356
+ export const ComplexFormSideLabel = Template . bind ( { } ) ;
357
+ ComplexFormSideLabel . args = { labelPosition : 'side' } ;
358
+
355
359
export const ComplexErrorMessage = ComplexErrorTemplate . bind ( { } ) ;
356
360
357
361
export const AsyncValidation = AsyncValidationTemplate . bind ( { } ) ;
0 commit comments