import React from 'react' ; import { Meta , Story } from '@storybook/react' ; import { RadioGroup , IRadioGroupProps } from './RadioGroup' ; export default { title : 'Components/forms/RadioGroup' , component : RadioGroup } as Meta ; const Template = ( args ) => < RadioGroup { ... args } / > ; export const RadioGroupView = Template . bind ( { } ) ; RadioGroupView . args = { options : [ { label : 'Yes' , value : '1' } , { label : 'No' , value : '0' } ] , name : 'test-radio-group1' , onChange : ( value ) => { alert ( value ) ; } , value : '1' } ;