Skip to content

Commit

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

export function Chip(props: ChipProps): JSX.Element {
return <MuiChip {...props} />;
}
const Chip = React.forwardRef<HTMLDivElement, ChipProps>((props, ref) => {
return <MuiChip {...props} ref={ref} />;
});

export default Chip;

0 comments on commit b953571

Please sign in to comment.