Improve Search input

This commit is contained in:
rui hildt 2020-07-29 12:59:56 +02:00
parent bae264ec6e
commit 60037e1d48

View File

@ -19,13 +19,10 @@ export const Search = ({
justify='center'
margin={{ top: 'large' }}
>
<Box
as='div'
margin={{ vertical: 'none' }}
width='500px'
>
<Box as='div' margin={{ vertical: 'none' }} width='500px'>
<TextInput
type='search'
name='q'
value={inputValue}
suggestions={suggestions}
onChange={(e) => handleChange(e.target.value)}
@ -33,6 +30,8 @@ export const Search = ({
icon={<FormSearch color='plain' />}
dropHeight='large'
placeholder='Type an artist name'
autoFocus
aria-label='Search for an artist name'
/>
</Box>
</Box>