moonstone/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
Node

Buttons, typically to close or take action in the Notification. Buttons must have their small property set and will be coerced to small if not specified.

children
Node

The contents to be displayed in the body of the Notification.

noAutoDismiss
Boolean

When true, the popup will not close when the user presses ESC key.

Default: false
onClose
Function

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 the open state to false.

open
Boolean

Is this control in the expanded state (true), opened, with the contents visible?

Default: false
scrimType
String

Types of scrim. It can be either 'transparent', 'translucent', or 'none'.

Default: 'transparent'
ArrayBooleanFunctionModuleNumberObjectString