feat: generic box

This commit is contained in:
karishmas6
2024-06-15 21:02:30 +05:30
parent 6074192510
commit ce8562539c

View File

@@ -0,0 +1,26 @@
import * as React from 'react';
import Box from '@mui/material/Box';
import { Typography } from "@mui/material";
interface BoxProps {
width: number | string,
height: number | string,
background: string,
radius: string,
children?: JSX.Element,
};
export const SimpleBox = ({width, height, background, radius, children}: BoxProps) => {
return (
<Box
sx={{
width: width,
height: height,
backgroundColor: background,
borderRadius: radius,
}}
>
{children}
</Box>
);
}