fleet/frontend/components/buttons/GradientButton/GradientButton.jsx
Mike Stone 5f1fc8123f Button style changes (#188)
* GradientButton style improvements

* SVG variant cleanup

* client side validations
2016-09-20 10:43:46 -07:00

32 lines
630 B
JavaScript

import React, { Component, PropTypes } from 'react';
import radium from 'radium';
import componentStyles from './styles';
class GradientButton extends Component {
static propTypes = {
onClick: PropTypes.func,
style: PropTypes.object,
text: PropTypes.string,
type: PropTypes.string,
};
static defaultProps = {
style: {},
};
render () {
const { onClick, style, text, type } = this.props;
return (
<button
onClick={onClick}
style={[componentStyles, style]}
type={type}
>
{text}
</button>
);
}
}
export default radium(GradientButton);