Skip to content

Instantly share code, notes, and snippets.

@mrcthms
Created September 27, 2018 12:01
Show Gist options
  • Save mrcthms/351cc4b6bee2b4ed5a6bd52a1b547a26 to your computer and use it in GitHub Desktop.
Save mrcthms/351cc4b6bee2b4ed5a6bd52a1b547a26 to your computer and use it in GitHub Desktop.
import React, { Component } from 'react'
import styled from 'styled-components'
const StyledButton = styled('a')`
display: flex;
align-items: center;
justify-content: center;
height: 36px;
width: 36px;
border-radius: ${({ theme }) => theme.radii.circled};
box-shadow: ${({ theme }) => theme.elevations.low};
background: ${({ theme, active }) => active ? theme.palette.structure.black : theme.palette.structure.white};
`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment