Repository URL to install this package:
|
Version:
0.0.15 ▾
|
import React from 'react';
import { styled } from 'styleh-components';
import Button from '../BlueButton';
const GreenButtonNamed = (props) => (React.createElement(Button, Object.assign({}, props, { className: 'button green-button ' + props.className })));
const GreenButton = styled(GreenButtonNamed) `
@font (13, regular);
font-weight: 900;
background-color: var(--color-dark-green);
display: flex;
justify-content: center;
align-items: center;
margin: 0 auto;
flex: 1;
align-self: flex-end;
${props => (props.isDisabled || props.state === 'disabled') &&
styled.css `
opacity: 0.5;
background-color: var(--color-dark-green);
`}
/* when the button has a link inside of it... */
a {
color: var(--color-pure-white);
}
`;
export { GreenButton };
export default GreenButton;
//# sourceMappingURL=index.js.map