mirror of
https://github.com/yldio/copilot.git
synced 2024-11-11 05:40:11 +02:00
0f6169ca5d
This should make developing components much easier, I hope :D
28 lines
470 B
JavaScript
28 lines
470 B
JavaScript
import React from 'react';
|
|
|
|
const buttonStyles = {
|
|
border: '1px solid #eee',
|
|
borderRadius: 3,
|
|
backgroundColor: '#FFFFFF',
|
|
cursor: 'pointer',
|
|
fontSize: 15,
|
|
padding: '3px 10px',
|
|
margin: 10,
|
|
};
|
|
|
|
const Button = ({ children, onClick }) => (
|
|
<button
|
|
style={buttonStyles}
|
|
onClick={onClick}
|
|
>
|
|
{children}
|
|
</button>
|
|
);
|
|
|
|
Button.propTypes = {
|
|
children: React.PropTypes.string.isRequired,
|
|
onClick: React.PropTypes.func,
|
|
};
|
|
|
|
export default Button;
|