Props
Attributes
- Graph
-
- Supertypes
-
trait WithChildren[VdomElement]trait PropTypesclass Objecttrait Matchableclass Any
Members list
Value members
Concrete methods
Props applied to the ClickAwayListener
element.
Props applied to the ClickAwayListener
element.
Attributes
Props applied to the SnackbarContent
element.
The component used for the transition. Follow this guide to learn more about the requirements for this component.
The component used for the transition. Follow this guide to learn more about the requirements for this component.
Attributes
Props applied to the transition element. By default, the element is based on this Transition
component.
Props applied to the transition element. By default, the element is based on this Transition
component.
Attributes
The action to display. It renders after the message, at the end of the snackbar.
The action to display. It renders after the message, at the end of the snackbar.
Attributes
The anchor of the Snackbar
. On smaller screens, the component grows to occupy all the available width, the horizontal alignment is ignored.
The anchor of the Snackbar
. On smaller screens, the component grows to occupy all the available width, the horizontal alignment is ignored.
Attributes
The number of milliseconds to wait before automatically calling the onClose
function. onClose
should then set the state of the open
prop to hide the Snackbar. This behavior is disabled by default with the null
value.
The number of milliseconds to wait before automatically calling the onClose
function. onClose
should then set the state of the open
prop to hide the Snackbar. This behavior is disabled by default with the null
value.
Attributes
Replace the SnackbarContent
component.
Replace the SnackbarContent
component.
Attributes
Override or extend the styles applied to the component.
Override or extend the styles applied to the component.
Attributes
If true
, the autoHideDuration
timer will expire even if the window is not focused.
If true
, the autoHideDuration
timer will expire even if the window is not focused.
Attributes
The message to display.
The message to display.
Attributes
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
.
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
.
Value parameters
- {React.SyntheticEvent<any>
-
| Event} event The event source of the callback.
- {string}
-
reason Can be:
"timeout"
(autoHideDuration
expired),"clickaway"
, or"escapeKeyDown"
.
Attributes
If true
, the component is shown.
If true
, the component is shown.
Attributes
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.
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.
Attributes
The system prop that allows defining system overrides as well as additional CSS styles.
The system prop that allows defining system overrides as well as additional CSS styles.
Attributes
The duration for the transition, in milliseconds. You may specify a single timeout for all transitions, or individually with an object.
The duration for the transition, in milliseconds. You may specify a single timeout for all transitions, or individually with an object.
Attributes
Inherited methods
Attributes
- Inherited from:
- PropTypes
Inherited fields
Attributes
- Inherited from:
- PropTypes