git ssb

0+

Rômulo Alves / plainbudget-next



Tree: f20766fcd63c17fd9526329e92ea3e92f42b26ac

Files: f20766fcd63c17fd9526329e92ea3e92f42b26ac / components / button.js

437 bytesRaw
1import { func, string } from 'prop-types';
2
3const Button = ({ children, onClick }) => (
4 <button onClick={ event => onClick && onClick(event) }>
5 { children }
6
7 <style jsx global>{`
8 button {
9 background: #43A047;
10 border: none;
11 border-radius: 3px;
12 color: #fff;
13 }
14 `}</style>
15 </button>
16);
17
18Button.propTypes = {
19 children: string.isRequired,
20 onClick: func
21};
22
23export default Button;

Built with git-ssb-web