From d2988b99143aabec88467212cfca5891bf6f6bd3 Mon Sep 17 00:00:00 2001
From: eug-vs <eug-vs@keemail.me>
Date: Thu, 18 Mar 2021 12:16:57 +0300
Subject: feat: remove default margin from Paper

---
 src/components/Paper.tsx | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

(limited to 'src/components/Paper.tsx')

diff --git a/src/components/Paper.tsx b/src/components/Paper.tsx
index 5e2604f..f285dab 100644
--- a/src/components/Paper.tsx
+++ b/src/components/Paper.tsx
@@ -2,6 +2,7 @@ import React from 'react';
 
 interface Props {
   variant?: 'elevation' | 'outlined';
+  className?: string;
 }
 
 const style = {
@@ -9,9 +10,9 @@ const style = {
   outlined: 'bg-gray-50 border border-gray-300',
 };
 
-const Paper: React.FC<Props> = ({ variant = 'elevation', children }) => {
+const Paper: React.FC<Props> = ({ variant = 'elevation', className, children }) => {
   return (
-    <div className={`p-5 m-5 bg-white rounded-md shadow ${style[variant]}`}>
+    <div className={`p-5 bg-white rounded-md shadow ${style[variant]} ${className}`}>
       {children}
     </div>
   );
-- 
cgit v1.2.3

