moonstone/ Notification
Exports the moonstone/Notification.Notification and moonstone/Notification.NotificationBase components. The default export is moonstone/Notification.Notification.
import Notification from '@enact/moonstone/Notification';
Members
NotificationComponent
moonstone/Notification.Notification is modal component with a message, and an area for additional controls.
import Notification from '@enact/moonstone/Notification';
NotificationBaseComponent
moonstone/Notification.NotificationBase is a toast-like minimal popup that comes up from the bottom of the screen. It requires a button to be provided and present to close it.
import {NotificationBase} from '@enact/moonstone/Notification';
Properties
- buttons
Buttons, typically to close or take action in the Notification. Buttons must have their
small
property set and will be coerced tosmall
if not specified.- children
The contents to be displayed in the body of the Notification.
- noAutoDismiss
When
true
, the popup will not close when the user pressesESC
key.Default: false- onClose
A function to be run when a closing action is invoked by the user. These actions include pressing
ESC
key or clicking on the close button. It is the responsibility of the callback to set theopen
state to false.- open
Is this control in the expanded state (true), opened, with the contents visible?
Default: false- scrimType
Types of scrim. It can be either
'transparent'
,'translucent'
, or'none'
.Default: 'transparent'