maputnik/src/components/Button.jsx

22 lines
469 B
React
Raw Normal View History

2016-12-22 11:27:53 +01:00
import React from 'react'
2017-01-11 09:35:48 +01:00
import classnames from 'classnames'
2016-12-22 11:27:53 +01:00
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,
2017-01-11 09:35:48 +01:00
className: React.PropTypes.string,
2016-12-22 11:27:53 +01:00
}
render() {
return <a
onClick={this.props.onClick}
2017-01-11 09:35:48 +01:00
className={classnames("maputnik-button", this.props.className)}
2017-01-10 21:28:30 +01:00
style={this.props.style}>
2016-12-22 11:27:53 +01:00
{this.props.children}
</a>
}
}
export default Button