1
0
mirror of https://github.com/yldio/copilot.git synced 2024-11-11 05:40:11 +02:00
copilot/ui/stories/Button.js
Tom Gallacher 0f6169ca5d Introduced storybook
This should make developing components much easier, I hope :D
2016-12-12 10:28:48 +00:00

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;