import { Meta , Story } from '@storybook/react' ; import { SearchInput , ISerachInputCustomProps } from '.' ; import React from 'react' ; const Template = ( args ) => < SearchInput { ... args } / > ; export const SearchInputView = Template . bind ( { } ) ; SearchInputView . args = { buttonLabel : 'Search' , onSubmit : ( searchText ) => alert ( searchText ) } ; export default { title : 'Components/Interface/SearchInput' , component : SearchInput } as Meta ;