Skip to content

Instantly share code, notes, and snippets.

@skflowne
Created August 15, 2020 09:36
Show Gist options
  • Save skflowne/e39e017abd39281131da07c3be5f5119 to your computer and use it in GitHub Desktop.
Save skflowne/e39e017abd39281131da07c3be5f5119 to your computer and use it in GitHub Desktop.
import React from "react"
import styled from "styled-components"
const StyledButton = styled("button")`
display: flex;
flex-flow: row nowrap;
align-items: center;
justify-content: center;
background-color: #4299e1;
color: #bee3f8;
padding: 0.75rem 1.5rem;
outline: none;
border: none;
font-size: 1rem;
cursor: pointer;
&:hover {
background-color: #63b3ed;
color: #ebf8ff;
}
&:disabled {
background-color: #e2e8f0;
color: #edf2f7;
cursor: initial;
}
`
const Button = ({ children, ...props }) => {
return <StyledButton {...props}>{children}</StyledButton>
}
export default Button
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment