diff options
Diffstat (limited to 'src/components/Paper.tsx')
-rw-r--r-- | src/components/Paper.tsx | 5 |
1 files changed, 3 insertions, 2 deletions
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> ); |