Skip to content

Instantly share code, notes, and snippets.

@nicholasess
Last active June 30, 2018 23:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nicholasess/4478836c50294185b65e4465d64ec10e to your computer and use it in GitHub Desktop.
Save nicholasess/4478836c50294185b65e4465d64ec10e to your computer and use it in GitHub Desktop.
const ButtonStyle = styled.a`
padding: 10px;
line-height: 40px;
text-align: center;
border-radius: ${({ rounded }) => (rounded ? "30px" : "5px")};
cursor: pointer;
margin: 3px 5px;
${({ type, outline }) => TypeButton(type, outline)};
`;
const Button = ({ children, type, outline, rounded }) => (
<ButtonStyle type={type} outline={outline} rounded={rounded}>
{children}
</ButtonStyle>
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment