maputnik/src/components/Button.jsx
2017-01-11 14:11:45 +01:00

21 lines
469 B
JavaScript

import React from 'react'
import classnames from 'classnames'
class Button extends React.Component {
static propTypes = {
onClick: React.PropTypes.func,
style: React.PropTypes.object,
className: React.PropTypes.string,
}
render() {
return <a
onClick={this.props.onClick}
className={classnames("maputnik-button", this.props.className)}
style={this.props.style}>
{this.props.children}
</a>
}
}
export default Button