Skip to content

Instantly share code, notes, and snippets.

@skolhustick
Created February 22, 2020 14:22
Show Gist options
  • Save skolhustick/19a5305110a0d3d46f77e6da8c1bc9d0 to your computer and use it in GitHub Desktop.
Save skolhustick/19a5305110a0d3d46f77e6da8c1bc9d0 to your computer and use it in GitHub Desktop.
NextJS styled-components example component
import styled from 'styled-components'
const Button = styled.button`
background: ${props => props.theme.bg};
color: ${props => props.theme.fontColor};
`
Button.defaultProps = {
theme: {
bg: 'white',
fontColor: 'black'
}
}
export default Button
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment