feat: move componentsto ui directory
This commit is contained in:
25
src/components/ui/Box.tsx
Normal file
25
src/components/ui/Box.tsx
Normal file
@@ -0,0 +1,25 @@
|
||||
import * as React from 'react';
|
||||
import Box from '@mui/material/Box';
|
||||
|
||||
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>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user