SHARE
TWEET

Untitled

a guest Oct 21st, 2019 74 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const Button = styled.button`
  2.   background: transparent;
  3.   border-radius: 3px;
  4.   border: 2px solid palevioletred;
  5.   color: palevioletred;
  6.   margin: 0.5em 1em;
  7.   padding: 0.25em 1em;
  8.   ${props => props.primary && css`
  9.     background: palevioletred;
  10.     color: white;
  11.   `}
  12. `;
  13. const Container = styled.div`
  14.   text-align: center;
  15. `
  16. render(
  17.   <Container>
  18.     <Button>Normal Button</Button>
  19.     <Button primary>Primary Button</Button>
  20.   </Container>
  21. );
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top