79257642

Date: 2024-12-06 10:32:01
Score: 2
Natty:
Report link

In order to passing props to TransitionComponent, you have to use TransitionProps.

<Menu
    // ...
    TransitionComponent={Slide}
    TransitionProps={{
        direction: 'down',
        unmountOnExit: true,
    }}
    // ...
>
    {/* ... */}
</Menu>

Reference: https://mui.com/material-ui/api/popover/#popover-prop-TransitionProps

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Nam Nguyen