Skip to content

Commit

Permalink
move to additionalProps
Browse files Browse the repository at this point in the history
  • Loading branch information
siriwatknp committed Jan 9, 2025
1 parent 43ef1a1 commit ccccc28
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/mui-material/src/Alert/Alert.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,10 @@ const Alert = React.forwardRef(function Alert(inProps, ref) {
elementType: AlertRoot,
externalForwardedProps,
ownerState,
additionalProps: {
role,
elevation: 0,
},
});

const [IconSlot, iconSlotProps] = useSlot('icon', {
Expand Down Expand Up @@ -245,7 +249,7 @@ const Alert = React.forwardRef(function Alert(inProps, ref) {
});

return (
<RootSlot role={role} elevation={0} {...rootSlotProps}>
<RootSlot {...rootSlotProps}>
{icon !== false ? (
<IconSlot {...iconSlotProps}>
{icon || iconMapping[severity] || defaultIconMapping[severity]}
Expand Down

0 comments on commit ccccc28

Please sign in to comment.