Created
March 6, 2018 11:11
-
-
Save anonymous/be700e21646e08f3b410fe6e0195ef89 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react' | |
import styled from 'styled-components' | |
const Select = styled.select` | |
margin: 2rem 0.5rem; | |
padding: 0rem 0.5rem; | |
font-family: Roboto; | |
font-size: 1rem; | |
border: 1px solid ${props => props.theme.light}; | |
box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1); | |
background: ${props => props.theme.light}; | |
border-radius: 2px; | |
` | |
export const SelectOpt = styled.option` | |
font-family: Roboto; | |
font-size: 1rem; | |
` | |
class ThemeSelect extends React.Component { | |
render() { | |
return ( | |
<div> | |
<Select onChange={e => this.props.handleThemeChange(e)}> | |
<SelectOpt value="theme1">Theme 1</SelectOpt> | |
<SelectOpt value="theme2">Theme 2</SelectOpt> | |
</Select> | |
</div> | |
) | |
} | |
} | |
export default ThemeSelect |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment