diff options
author | ilyayudovin <46264063+ilyayudovin@users.noreply.github.com> | 2020-06-07 20:20:21 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-07 20:20:21 +0300 |
commit | 98442762c1bbdf4e4aff317ca8ec660b6817418f (patch) | |
tree | ff56c75b023fa166781275adfd65ea917d275968 /src/Header/SearchBar.tsx | |
parent | 5ff3d0a3a29ebba9c42603369bb16d7419a423d1 (diff) | |
parent | b8b848dfd6e3843c6b455c8344320dcd187b72da (diff) | |
download | which-ui-98442762c1bbdf4e4aff317ca8ec660b6817418f.tar.gz |
Merge branch 'master' into feed
Diffstat (limited to 'src/Header/SearchBar.tsx')
-rw-r--r-- | src/Header/SearchBar.tsx | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/Header/SearchBar.tsx b/src/Header/SearchBar.tsx new file mode 100644 index 0000000..182a1a4 --- /dev/null +++ b/src/Header/SearchBar.tsx @@ -0,0 +1,31 @@ +import React from 'react'; +import SearchIcon from '@material-ui/icons/Search'; +import { InputBase } from '@material-ui/core'; +import { makeStyles } from '@material-ui/core/styles'; + +const useStyles = makeStyles(theme => ({ + root: { + background: 'rgba(255, 255, 255, 0.5)', + borderRadius: '2px', + padding: theme.spacing(0.5), + display: 'flex', + alignItems: 'center' + } +})); + +const SearchBar: React.FC = () => { + const classes = useStyles(); + + return ( + <div className={classes.root}> + <SearchIcon /> + <InputBase + placeholder="Search..." + /> + </div> + ); +}; + + +export default SearchBar; + |