Skip to content

Commit

Permalink
fix(box): add forwardRef to box component
Browse files Browse the repository at this point in the history
  • Loading branch information
capricorn-32 committed Dec 22, 2024
1 parent d538442 commit 02a1484
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/base/Box/Box.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { Box as MuiBox, type BoxProps as MuiBoxProps } from '@mui/material';
import React from 'react';

export function Box(props: MuiBoxProps): JSX.Element {
return <MuiBox {...props} />;
}
const Box = React.forwardRef<HTMLDivElement, MuiBoxProps>((props, ref) => {
return <MuiBox {...props} ref={ref} />;
});

export default Box;

0 comments on commit 02a1484

Please sign in to comment.