diff options
author | Eugene Sokolov <eug-vs@keemail.me> | 2020-10-10 14:15:36 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-10 14:15:36 +0300 |
commit | 0b1bbde30d4d396f8e760c59d35689353ea012a2 (patch) | |
tree | 521284ca3aefc0f66e9e9df0f6affc82baba8ba6 /src/demo/Button/Button.tsx | |
parent | 513f28b126bac41a3a4853a2c4466f0f24070a66 (diff) | |
parent | ff32e155b003997d2f71cc8ff62f5f0063592824 (diff) | |
download | react-benzin-0b1bbde30d4d396f8e760c59d35689353ea012a2.tar.gz |
Merge pull request #16 from eug-vs/develop
Release v4.0.0
Diffstat (limited to 'src/demo/Button/Button.tsx')
-rw-r--r-- | src/demo/Button/Button.tsx | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/demo/Button/Button.tsx b/src/demo/Button/Button.tsx new file mode 100644 index 0000000..6bc0f98 --- /dev/null +++ b/src/demo/Button/Button.tsx @@ -0,0 +1,18 @@ +import React from 'react'; +import { Button as MaterialButton } from '@material-ui/core'; + + +interface PropTypes { + color: 'primary' | 'secondary'; +} + +const Button: React.FC<PropTypes> = ({ color, children }) => ( + <MaterialButton + variant="contained" + color={color} + children={children} + /> +); + + +export default Button; |