Skip to content

Commit 43f0955

Browse files
committed
fix(stack): add forwardRef stack component
Signed-off-by: seniorliketocode <abhishek234543@gmail.com>
1 parent 7f1ac9c commit 43f0955

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/base/Stack/Stack.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import { Stack as MuiStack, type StackProps as MuiStackProps } from '@mui/material';
2+
import React from 'react';
23

3-
export function Stack(props: MuiStackProps): JSX.Element {
4-
return <MuiStack {...props} />;
5-
}
4+
const Stack = React.forwardRef<HTMLDivElement, MuiStackProps>((props, ref) => {
5+
return <MuiStack {...props} ref={ref} />;
6+
});
67

78
export default Stack;

0 commit comments

Comments
 (0)