import React from 'react' ; import { Meta , Story } from '@storybook/react' ; import { CheckboxGroup , ICheckboxGroup } from './CheckboxGroup' ; export default { title : 'Components/forms/CheckboxGroup' , component : CheckboxGroup } as Meta ; const Template = ( args ) => < CheckboxGroup { ... args } / > ; export const CheckboxGroupView = Template . bind ( { } ) ; CheckboxGroupView . args = { options : [ { label : 'Bananas' , value : 'bananas' } , { label : 'Oranges' , value : 'oranges' } ] , name : 'test-checkbox-group1' , value : [ 'bananas' ] } ;