old-ybbond

My old site that was written with ReactJS
Log | Files | Refs | README | LICENSE | CC-LICENSE

Button.js (453B)


      1 // @flow
      2 import styled, {type StyledComponent} from 'styled-components';
      3 import {colors} from '../Theme/colors';
      4 
      5 type ButtonProps = {
      6   onClick: () => void,
      7 };
      8 
      9 const Button: StyledComponent<ButtonProps, {}, {}> = styled.button`
     10   background-color: ${colors.transparent};
     11   border-color: ${colors.transparent};
     12   border-width: 0;
     13   cursor: pointer;
     14   font-size: 1em;
     15   padding: 0;
     16 
     17   &::-moz-focus-inner {
     18     border: 0;
     19   }
     20 `;
     21 
     22 export default Button;