You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/pages/api-docs/snackbar.md
-6
Original file line number
Diff line number
Diff line change
@@ -39,12 +39,6 @@ The `MuiSnackbar` name can be used for providing [default props](/customization/
39
39
| <spanclass="prop-name">key</span> | <spanclass="prop-type">any</span> || When displaying multiple consecutive Snackbars from a parent rendering a single <Snackbar/>, add the key prop to ensure independent treatment of each message. e.g. <Snackbar key={message} />, otherwise, the message may update-in-place and features such as autoHideDuration may be canceled. |
40
40
| <spanclass="prop-name">message</span> | <spanclass="prop-type">node</span> || The message to display. |
41
41
| <spanclass="prop-name">onClose</span> | <spanclass="prop-type">func</span> || Callback fired when the component requests to be closed. Typically `onClose` is used to set state in the parent component, which is used to control the `Snackbar``open` prop. The `reason` parameter can optionally be used to control the response to `onClose`, for example ignoring `clickaway`.<br><br>**Signature:**<br>`function(event: object, reason: string) => void`<br>*event:* The event source of the callback.<br>*reason:* Can be: `"timeout"` (`autoHideDuration` expired), `"clickaway"`. |
42
-
| <spanclass="prop-name">onEnter</span> | <spanclass="prop-type">func</span> || Callback fired before the transition is entering. |
43
-
| <spanclass="prop-name">onEntered</span> | <spanclass="prop-type">func</span> || Callback fired when the transition has entered. |
44
-
| <spanclass="prop-name">onEntering</span> | <spanclass="prop-type">func</span> || Callback fired when the transition is entering. |
45
-
| <spanclass="prop-name">onExit</span> | <spanclass="prop-type">func</span> || Callback fired before the transition is exiting. |
46
-
| <spanclass="prop-name">onExited</span> | <spanclass="prop-type">func</span> || Callback fired when the transition has exited. |
47
-
| <spanclass="prop-name">onExiting</span> | <spanclass="prop-type">func</span> || Callback fired when the transition is exiting. |
48
42
| <spanclass="prop-name">open</span> | <spanclass="prop-type">bool</span> || If `true`, `Snackbar` is open. |
49
43
| <spanclass="prop-name">resumeHideDuration</span> | <spanclass="prop-type">number</span> || The number of milliseconds to wait before dismissing after user interaction. If `autoHideDuration` prop isn't specified, it does nothing. If `autoHideDuration` prop is specified but `resumeHideDuration` isn't, we default to `autoHideDuration / 2` ms. |
50
44
| <spanclass="prop-name">TransitionComponent</span> | <spanclass="prop-type">elementType</span> | <spanclass="prop-default">Grow</span> | The component used for the transition. [Follow this guide](/components/transitions/#transitioncomponent-prop) to learn more about the requirements for this component. |
0 commit comments