From ce8562539c442c88d02ccee0151bea5bf9e552a8 Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Sat, 15 Jun 2024 21:02:30 +0530 Subject: [PATCH] feat: generic box --- src/components/atoms/Box.tsx | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 src/components/atoms/Box.tsx diff --git a/src/components/atoms/Box.tsx b/src/components/atoms/Box.tsx new file mode 100644 index 00000000..da6b19dd --- /dev/null +++ b/src/components/atoms/Box.tsx @@ -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 ( + + {children} + + ); +}