Skip to content

Instantly share code, notes, and snippets.

@nicholasess
Last active Jun 30, 2018
Embed
What would you like to do?
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