@@ -266,7 +266,7 @@ const Template: StoryFn<typeof Form> = (args) => {
266266 return ! ! email ;
267267 } }
268268 >
269- < TextInput type = "email" label = "Email field" />
269+ < TextInput type = "email" size = "small" label = "Email field" />
270270 </ Field >
271271 < Field name = "password" >
272272 < PasswordInput label = "Password field" />
@@ -306,7 +306,7 @@ const Template: StoryFn<typeof Form> = (args) => {
306306 </ CheckboxGroup >
307307 </ Field >
308308 < Field name = "radioGroup" label = "Radio group" >
309- < Radio . Group >
309+ < Radio . Group orientation = "horizontal" >
310310 < Radio value = "one" > One</ Radio >
311311 < Radio value = "two" > Two</ Radio >
312312 < Radio value = "three" > Three</ Radio >
@@ -322,7 +322,7 @@ const Template: StoryFn<typeof Form> = (args) => {
322322 name = "switch"
323323 rules = { [ { required : true , message : 'This field is required' } ] }
324324 >
325- < Switch label = "Switch field" / >
325+ < Switch label = "Switch field" > Switch value </ Switch >
326326 </ Field >
327327 < Field
328328 name = "number"
@@ -331,6 +331,7 @@ const Template: StoryFn<typeof Form> = (args) => {
331331 < NumberInput label = "Number field" minValue = { - 1 } />
332332 </ Field >
333333 < Field
334+ label = "Slider"
334335 name = "slider"
335336 rules = { [ { required : true , message : 'This field is required' } ] }
336337 >
@@ -352,6 +353,9 @@ export const FormInsideDialog: StoryFn = () => {
352353
353354export const Default = Template . bind ( { } ) ;
354355
356+ export const ComplexFormSideLabel = Template . bind ( { } ) ;
357+ ComplexFormSideLabel . args = { labelPosition : 'side' } ;
358+
355359export const ComplexErrorMessage = ComplexErrorTemplate . bind ( { } ) ;
356360
357361export const AsyncValidation = AsyncValidationTemplate . bind ( { } ) ;
0 commit comments