Skip to content

Instantly share code, notes, and snippets.

@mattshardman
Created March 17, 2019 17:15
Show Gist options
  • Save mattshardman/384e5c00efa4bb11b72834ce8ad4330c to your computer and use it in GitHub Desktop.
Save mattshardman/384e5c00efa4bb11b72834ce8ad4330c to your computer and use it in GitHub Desktop.
// Search.js
import React from 'react';
function Search() {
return (
<div className="search-box">
<input type="text" className="search-input"/>
<style jsx>{`
.search-box {
width: 300px;
max-width: 100%;
height: 40px;
border-radius: 20px;
border: 1px solid #eaeaea;
}
.search-input {
width: 90%;
height: 100%;
border: none;
background: none;
}
`}</style>
</div>
);
}
export default Search;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment