maputnik/src/components/Button.jsx

22 lines
450 B
React
Raw Normal View History

2016-12-22 11:27:53 +01:00
import React from 'react'
import colors from '../config/colors'
import { margins, fontSizes } from '../config/scales'
class Button extends React.Component {
static propTypes = {
2016-12-22 16:35:31 +01:00
onClick: React.PropTypes.func,
2016-12-22 11:27:53 +01:00
style: React.PropTypes.object,
}
render() {
return <a
onClick={this.props.onClick}
2017-01-10 21:28:30 +01:00
className="maputnik-button"
style={this.props.style}>
2016-12-22 11:27:53 +01:00
{this.props.children}
</a>
}
}
export default Button