Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
ui-component-library / src / playground / Button / breed / GreenButton.tsx
Size: Mime:
// import Button from './BaseButtonAtom'
import React from 'react'
import { isString } from 'exotic'
import Button from './BlueButton'

const GreenButtonNamed = props => (
  <Button {...props} className={'button green-button ' + props.className} />
)

const GreenButton = styled.withComponent(GreenButtonNamed) `
  @font(13, regular);
  font-weight: 900;
  background-color: $colors-primary-darkgreen;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  // why?
  flex: 1;
  align-self: flex-end;

  ${props =>
    (props.isDisabled || props.state === 'disabled') &&
    styled.css `
      opacity: 0.5;
      background-color: $colors-primary-darkgreen;
    `}

  /* when the button has a link inside of it... */
  a {
    color: $colors-main-background;
  }
`

export { GreenButton }
export default GreenButton