Skip to content

Instantly share code, notes, and snippets.

@LarryKarani
Last active May 2, 2020 10:21
Show Gist options
  • Save LarryKarani/c302e4686fb13db2c70dbf1e58357b8e to your computer and use it in GitHub Desktop.
Save LarryKarani/c302e4686fb13db2c70dbf1e58357b8e to your computer and use it in GitHub Desktop.
import React from 'react';
import styled from 'styled-componets';
const Button = styled.button`
cursor: pointer;
background: transparent;
font-size: 16px;
border-radius: 3px;
color: palevioletred;
border: 2px solid palevioletred;
margin: 0 1em;
padding: 0.25em 1em;
transition: 0.5s all ease-out;
&:hover {
background-color: palevioletred;
color: white;
}
`
const App = () => {
return (
<div>
<h1> Stlyed Button </h1>
<Button>Custom button</Button>
</div>
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment