Skip to content

Commit

Permalink
Create proxy component of Box
Browse files Browse the repository at this point in the history
  • Loading branch information
Viktor Riabkov committed Apr 9, 2024
1 parent bc4ea3f commit 0f59bd1
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/shared/ui/Box/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import MUIBox, { BoxProps } from '@mui/material/Box';

/**
* Common proxy component of the Box component by MaterialUI.
*
* @component
* @example
* return (
* <Box>Anything</Box>
* )
*/

function Box(props: BoxProps) {
return <MUIBox {...props} />;
}

export default Box;
1 change: 1 addition & 0 deletions src/shared/ui/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,4 @@ export * from './MuiModal';

// Common - UI
export * from './Container';
export { default as Box } from './Box';

0 comments on commit 0f59bd1

Please sign in to comment.