Trizotti
Trizotti
Adds a new param to the `$toast.add` method, - `onTimeout`: a function that will be called after the life time of a toast message. > This event will be triggered...
closes #34722 - [x] I have followed (at least) the [PR section of the contributing guide](https://github.com/mui/material-ui/blob/HEAD/CONTRIBUTING.md#sending-a-pull-request).
Resolves #34978 - [x] I have followed (at least) the [PR section of the contributing guide](https://github.com/mui/material-ui/blob/HEAD/CONTRIBUTING.md#sending-a-pull-request). **Before**: - Accordion: https://codesandbox.io/s/twilight-sun-nn4m8m?file=/src/App.tsx - DatePicker: https://codesandbox.io/s/date-and-time-pickers-forked-3lgyks?file=/src/App.tsx **After**: - Accordion: https://codesandbox.io/s/create-react-app-with-typescript-forked-0kcu01?file=/src/App.tsx - DatePicker: https://codesandbox.io/s/create-react-app-with-typescript-forked-ep95ci?file=/src/App.tsx
- [x] I have followed (at least) the [PR section of the contributing guide](https://github.com/mui/material-ui/blob/HEAD/CONTRIBUTING.md#sending-a-pull-request). This is a try for updating the styles as suggested in this [comment](https://github.com/mui/material-ui/issues/35045#issuecomment-1310310771) (v2) of #35045.