@scientist-softserv/webstore-component-library
Version:
A React component library intended for use with WebStore applications
23 lines (18 loc) • 546 B
JSX
import React from 'react'
import SearchBar from './SearchBar'
export default {
title: 'Components/SearchBar',
component: SearchBar,
}
const Template = (args) => <SearchBar {...args} />
export const Default = Template.bind({})
Default.args = {
onSubmit: ({ value }) => console.log('the value is:', value),
placeholder: 'Search for a service',
}
export const Alternate = Template.bind({})
Alternate.args = {
onSubmit: ({ value }) => console.log('the value is:', value),
placeholder: 'Search for a service',
initialValue: 'abg',
}