Skip to content

Commit ad400eb

Browse files
committed
feat: add Alert component with MUI integration
Signed-off-by: amitamrutiya <amitamrutiya2210@gmail.com>
1 parent 9ee80ba commit ad400eb

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

src/base/Alert/Alert.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import { Alert as MuiAlert, AlertProps as MuiAlertProps } from '@mui/material';
2+
import React from 'react';
3+
4+
export const Alert = React.forwardRef<HTMLDivElement, MuiAlertProps>((props, ref) => {
5+
return <MuiAlert ref={ref} {...props} />;
6+
});
7+
8+
export default Alert;

src/base/Alert/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { Alert } from './Alert';

0 commit comments

Comments
 (0)