diff options
author | Eugene Sokolov <eug-vs@keemail.me> | 2020-06-07 20:16:35 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-07 20:16:35 +0300 |
commit | b8b848dfd6e3843c6b455c8344320dcd187b72da (patch) | |
tree | 448562cddde0e5cdf6014fab6b00554970539dff /src/Header/SearchBar.tsx | |
parent | 4e4c9d529e6f70e7dac84aaecb5b6a25769c3290 (diff) | |
parent | 796271adc4bf815c19c58f4231019502cb0bed24 (diff) | |
download | which-ui-b8b848dfd6e3843c6b455c8344320dcd187b72da.tar.gz |
Merge pull request #13 from ilyayudovin/header-enhanced
Improve Header styles
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; + |