summaryrefslogtreecommitdiff
path: root/src/components/Button.tsx
diff options
context:
space:
mode:
authoreug-vs <eug-vs@keemail.me>2021-03-14 00:13:53 +0300
committereug-vs <eug-vs@keemail.me>2021-03-14 00:13:53 +0300
commitf5ef787ee0ed2953ab85c2f2999031986f059ef2 (patch)
tree6324286ec5f796ce9f35d0ea94014a00527dfadd /src/components/Button.tsx
parent1b6e230df7ffd31226af1716f5e442c134ea1c38 (diff)
downloadcommercel-ui-f5ef787ee0ed2953ab85c2f2999031986f059ef2.tar.gz
feat: add Header and Button
Diffstat (limited to 'src/components/Button.tsx')
-rw-r--r--src/components/Button.tsx23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/components/Button.tsx b/src/components/Button.tsx
new file mode 100644
index 0000000..55ceda6
--- /dev/null
+++ b/src/components/Button.tsx
@@ -0,0 +1,23 @@
+import React from 'react';
+
+interface Props {
+ variant?: 'contained' | 'outlined'
+ children: string;
+}
+
+
+const styles = {
+ contained: "bg-black text-white",
+ outlined: "border-2 border-black"
+};
+
+const Button: React.FC<Props> = ({ children, variant = 'contained' }) => {
+
+ return (
+ <button className={`p-4 m-3 font-bold tracking-wide hover:underline focus:outline-none ${styles[variant]}`}>
+ {children}
+ </button>
+ );
+};
+
+export default Button;