diff options
author | Eug-VS <eug-vs@keemail.me> | 2020-02-08 15:36:32 +0300 |
---|---|---|
committer | Eug-VS <eug-vs@keemail.me> | 2020-02-08 15:43:32 +0300 |
commit | 4af6a41a8bfc9d5f8b90d3aa8bc96a804607dba0 (patch) | |
tree | 9f2b33df235fdf3dd32c2710400bca51d6bedb15 /src/lib | |
parent | c57197bd7fd37161c42a1a6fd272c6666c8a13a1 (diff) | |
download | react-benzin-4af6a41a8bfc9d5f8b90d3aa8bc96a804607dba0.tar.gz |
feat: add Button component
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/Button/Button.tsx | 18 | ||||
-rw-r--r-- | src/lib/index.ts | 1 |
2 files changed, 19 insertions, 0 deletions
diff --git a/src/lib/Button/Button.tsx b/src/lib/Button/Button.tsx new file mode 100644 index 0000000..6bc0f98 --- /dev/null +++ b/src/lib/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; diff --git a/src/lib/index.ts b/src/lib/index.ts index 67f9bb4..a41dd39 100644 --- a/src/lib/index.ts +++ b/src/lib/index.ts @@ -3,3 +3,4 @@ export { default as Header } from './Header/Header'; export { default as ContentSection } from './ContentSection/ContentSection'; export { default as SmartList } from './SmartList/SmartList'; export { default as BenzinThemeProvider } from './BenzinThemeProvider/BenzinThemeProvider'; +export { default as Button } from './Button/Button'; |