Skip to content

Commit 6e055f3

Browse files
committed
fix(Tab): add forwardRef Tab component
Signed-off-by: seniorliketocode <abhishek234543@gmail.com>
1 parent ceee657 commit 6e055f3

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/base/Tab/Tab.tsx

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

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

78
export default Tab;

0 commit comments

Comments
 (0)