blob: 809429334f1fdb2ab5a9903267d78cf4f0e759c7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
import React from 'react';
interface Props {
variant?: 'elevation' | 'outlined';
className?: string;
}
const style = {
elevation: '',
outlined: 'bg-gray-50 border border-gray-300',
};
const Paper: React.FC<Props> = ({ variant = 'elevation', className, children }) => {
return (
<div className={`p-4 lg:p-5 bg-white rounded-md shadow ${style[variant]} ${className}`}>
{children}
</div>
);
};
export default Paper;
|