Toast notifications are used to communicate low severity level information to users in an unobtrusive way. They should be used sparingly to display low attention messages and statuses that do not require user action.
If there are multiple toast notifications, you should deal with them by having only one toast present at a time. Once the first toast is dismissed or timed out, the next one should appear.
Anchors that appear to the right of the title and message. Value should be provided as an array of objects, where the object accepts any Anchor properties.
array
[{ label: 'Renew Subscription', href: '/renew'}] [
{ label: 'Renew Subscription', href: '/renew'},
{ label: 'View Details', href:'/details' }
]
A boolean flag indicating whether or not the Notification is a Global Notification. Global notifications are displayed directly beneath an application header as opposed to a notification within an individual page. Global Banner notifications can receive their own theming.
Icon to use for the Notification.
A custom message displayed under the title. Provides more information about the Notification.
string
"You were signed out due to inactivity."
node
<Text size='large'>...</Text>
Click handler. Not setting this property causes the Notification to not have a close button.
An indicator that relays the current status of a Notification.
string
"unknown" "normal" "warning" "info" "critical"
The amount of time a toast Notification should stay open.
A string that represents the title of a Notification.
string
"Your session has expired."
A boolean flag that indicates whether or not the Notification is a Toast Notification.
object
When using Toast Notification a position is available to pass in as an object which will then be the position of the toast content. autoClose
can be set to false to prevent the notification from closing after a period of time defined by notification.toast.time
.
{
autoClose: boolean,
position: 'bottom-right',
}
The color of the close button icon.
string
A hex, name, or rgb value.
object
An object with a color for dark and light modes.
{ dark: "string", light: "string" }
The default close button icon.
Any valid Box prop for the Notification container.
object
'background.color' is used for the container color.
{
round: 'xsmall',
pad: { horizontal: 'small', vertical: 'xsmall' },
background: {
color: 'background-front',
}
}
The layout direction for the title and message.
notification.global.container
Any valid Box prop for the Global Notification container.
object
{
round: 'none',
pad: {
horizontal: 'large',
vertical: 'xsmall',
},
notification.global.direction
The layout direction for the title and message of a global notification.
notification.critical.color
The color of the critical status icon.
string
A hex, name, or rgb value.
object
An object with a color for dark and light modes.
{ dark: "string", light: "string" }
notification.critical.icon
The default icon for a critical status Notification.
node
<StatusCriticalSmall /> <Icon />
notification.critical.background
The background of a critical Notification.
object
background: {
color: 'status-critical',
opacity: 'weak',
},
{ dark: "string", light: "string" }
notification.critical.global.background
The background of a critical global Notification.
object
background: {
color: 'status-critical',
opacity: 'weak',
},
{ dark: "string", light: "string" }
notification.critical.toast.background
The background of a critical toast Notification.
object
background: {
color: 'status-warning',
opacity: 'weak',
},
{ dark: "string", light: "string" }
notification.critical.message.color
The color of the message text for critical status.
string
A hex, name, or rgb value.
object
An object with a color for dark and light modes.
{ dark: "string", light: "string" }
notification.critical.title.color
The color of the title text for critical status.
string
A hex, name, or rgb value.
object
An object with a color for dark and light modes.
{ dark: "string", light: "string" }
notification.critical.global.message.color
The color of the message text for critical global status.
string
A hex, name, or rgb value.
object
An object with a color for dark and light modes.
{ dark: "string", light: "string" }
notification.critical.global.title.color
The color of the title text for critical global status.
string
A hex, name, or rgb value.
object
An object with a color for dark and light modes.
{ dark: "string", light: "string" }
notification.critical.toast.message.color
The color of the message text for critical toast status.
string
A hex, name, or rgb value.
object
An object with a color for dark and light modes.
{ dark: "string", light: "string" }
notification.critical.toast.title.color
The color of the title text for critical toast status.
string
A hex, name, or rgb value.
object
An object with a color for dark and light modes.
{ dark: "string", light: "string" }
notification.iconContainer
Any valid Box prop for the icon container.
object
{
pad: { right: 'small' },
}
The color of the info status icon.
string
A hex, name, or rgb value.
object
An object with a color for dark and light modes.
{ dark: "string", light: "string" }
The default icon for an info status Notification.
node
<CircleInformation /> <Icon />
notification.info.background
The background of an info Notification.
object
background: {
color: 'background-contrast',
opacity: 'weak',
},
{ dark: "string", light: "string" }
notification.info.global.background
The background of an info global Notification.
object
background: {
color: 'background-back',
opacity: 'weak',
},
{ dark: "string", light: "string" }
notification.info.toast.background
The background of an info toast Notification.
object
background: {
color: 'background-back',
opacity: 'weak',
},
{ dark: "string", light: "string" }
notification.info.message.color
The color of the message text for info status.
string
A hex, name, or rgb value.
object
An object with a color for dark and light modes.
{ dark: "string", light: "string" }
notification.info.title.color
The color of the title text for info status.
string
A hex, name, or rgb value.
object
An object with a color for dark and light modes.
{ dark: "string", light: "string" }
notification.info.global.message.color
The color of the message text for info global status.
string
A hex, name, or rgb value.
object
An object with a color for dark and light modes.
{ dark: "string", light: "string" }
notification.info.global.title.color
The color of the title text for info global status.
string
A hex, name, or rgb value.
object
An object with a color for dark and light modes.
{ dark: "string", light: "string" }
Any valid Text prop for the message text.
object
'color' is used for the message color.
notification.normal.color
The color of the normal status icon.
string
A hex, name, or rgb value.
object
An object with a color for dark and light modes.
{ dark: "string", light: "string" }
The default icon for a normal status Notification.
node
<StatusGoodSmall /> <Icon />
notification.normal.background
The background of a normal Notification.
object
background: {
color: 'status-ok',
opacity: 'weak',
},
{ dark: "string", light: "string" }
notification.normal.global.background
The background of a normal global Notification.
object
background: {
color: 'status-ok',
opacity: 'weak',
},
{ dark: "string", light: "string" }
notification.normal.toast.background
The background of a normal toast Notification.
object
background: {
color: 'status-ok',
opacity: 'weak',
},
{ dark: "string", light: "string" }
notification.normal.message.color
The color of the message text for normal status.
string
A hex, name, or rgb value.
object
An object with a color for dark and light modes.
{ dark: "string", light: "string" }
notification.normal.title.color
The color of the title text for normal status.
string
A hex, name, or rgb value.
object
An object with a color for dark and light modes.
{ dark: "string", light: "string" }
notification.normal.global.message.color
The color of the message text for normal global status.
string
A hex, name, or rgb value.
object
An object with a color for dark and light modes.
{ dark: "string", light: "string" }
notification.normal.global.title.color
The color of the title text for normal global status.
string
A hex, name, or rgb value.
object
An object with a color for dark and light modes.
{ dark: "string", light: "string" }
notification.normal.toast.message.color
The color of the message text for normal toast status.
string
A hex, name, or rgb value.
object
An object with a color for dark and light modes.
{ dark: "string", light: "string" }
notification.normal.toast.title.color
The color of the title text for normal toast status.
string
A hex, name, or rgb value.
object
An object with a color for dark and light modes.
{ dark: "string", light: "string" }
notification.textContainer
Any valid Box prop for the text container.
Any valid Text prop for the title text.
object
'color' is used for the text color and 'weight' for the weight of the title.
{
weight: 'bold',
color: 'text'
}
notification.toast.container
Any valid Box prop for the Toast Notification container.
object
'width' is used for the default width of a Toast Notification.
{
elevation: 'medium',
width: 'medium'
}
notification.toast.direction
The layout direction for the title and message of a toast notification.
Any valid Layer prop for the Toast Notification layer.
object
'position' is used for the default positioning of a Toast Notification.
{
position: 'top',
margin: 'medium',
}
The time duration of a Toast Notification.
number
The value is in milliseconds (ms).
notification.unknown.color
The color of the unknown status icon.
string
A hex, name, or rgb value.
object
An object with a color for dark and light modes.
{ dark: "string", light: "string" }
notification.unknown.icon
The default icon for an unknown status Notification.
node
<StatusUnknownSmall /> <Icon />
notification.unknown.background
The background of an unknown Notification.
object
background: {
color: 'status-unknown',
opacity: 'weak',
},
{ dark: "string", light: "string" }
notification.unknown.message.color
The color of the message text for unknown status.
string
A hex, name, or rgb value.
object
An object with a color for dark and light modes.
{ dark: "string", light: "string" }
notification.unknown.title.color
The color of the title text for unknown status.
string
A hex, name, or rgb value.
object
An object with a color for dark and light modes.
{ dark: "string", light: "string" }
notification.unknown.global.message.color
The color of the message text for unknown global status.
string
A hex, name, or rgb value.
object
An object with a color for dark and light modes.
{ dark: "string", light: "string" }
notification.unknown.global.title.color
The color of the title text for unknown global status.
string
A hex, name, or rgb value.
object
An object with a color for dark and light modes.
{ dark: "string", light: "string" }
notification.unknown.toast.message.color
The color of the message text for unknown toast status.
string
A hex, name, or rgb value.
object
An object with a color for dark and light modes.
{ dark: "string", light: "string" }
notification.unknown.toast.title.color
The color of the title text for unknown toast status.
string
A hex, name, or rgb value.
object
An object with a color for dark and light modes.
{ dark: "string", light: "string" }
notification.unknown.global.background
The background of an unknown global Notification.
object
background: {
color: 'status-unknown',
opacity: 'weak',
},
{ dark: "string", light: "string" }
notification.unknown.toast.background
The background of an unknown toast Notification.
object
background: {
color: 'status-unknown',
opacity: 'weak',
},
{ dark: "string", light: "string" }
notification.undefined.background
The background of a Notification with no status defined.
object
background: {
color: 'status-unknown',
opacity: 'weak',
},
{ dark: "string", light: "string" }
notification.undefined.global.background
The background of a Notification with no status defined.
object
background: {
color: 'status-unknown',
opacity: 'weak',
},
{ dark: "string", light: "string" }
notification.undefined.message.color
The color of the message text for undefined status.
string
A hex, name, or rgb value.
object
An object with a color for dark and light modes.
{ dark: "string", light: "string" }
notification.undefined.title.color
The color of the title text for undefined status.
string
A hex, name, or rgb value.
object
An object with a color for dark and light modes.
{ dark: "string", light: "string" }
notification.undefined.global.message.color
The color of the message text for undefined global status.
string
A hex, name, or rgb value.
object
An object with a color for dark and light modes.
{ dark: "string", light: "string" }
notification.undefined.global.title.color
The color of the title text for undefined global status.
string
A hex, name, or rgb value.
object
An object with a color for dark and light modes.
{ dark: "string", light: "string" }
notification.undefined.toast.background
The background of a Notification with no status defined.
object
background: {
color: 'status-unknown',
opacity: 'weak',
},
{ dark: "string", light: "string" }
notification.warning.color
The color of the warning status icon.
string
A hex, name, or rgb value.
object
An object with a color for dark and light modes.
{ dark: "string", light: "string" }
notification.warning.icon
The default icon for a warning status Notification.
node
<StatusWarningSmall /> <Icon />
notification.warning.background
The background of a warning Notification.
object
background: {
color: 'status-warning',
opacity: 'weak',
},
{ dark: "string", light: "string" }
notification.warning.global.background
The background of a warning global Notification.
object
background: {
color: 'status-warning',
opacity: 'weak',
},
{ dark: "string", light: "string" }
notification.warning.toast.background
The background of a warning toast Notification.
object
background: {
color: 'status-warning',
opacity: 'weak',
},
{ dark: "string", light: "string" }
notification.warning.message.color
The color of the message text for warning status.
string
A hex, name, or rgb value.
object
An object with a color for dark and light modes.
{ dark: "string", light: "string" }
notification.warning.title.color
The color of the title text for warning status.
string
A hex, name, or rgb value.
object
An object with a color for dark and light modes.
{ dark: "string", light: "string" }
notification.warning.global.message.color
The color of the message text for warning global status.
string
A hex, name, or rgb value.
object
An object with a color for dark and light modes.
{ dark: "string", light: "string" }
notification.warning.global.title.color
The color of the title text for warning global status.
string
A hex, name, or rgb value.
object
An object with a color for dark and light modes.
{ dark: "string", light: "string" }
notification.warning.toast.message.color
The color of the message text for warning toast status.
string
A hex, name, or rgb value.
object
An object with a color for dark and light modes.
{ dark: "string", light: "string" }
notification.warning.toast.title.color
The color of the title text for warning toast status.
string
A hex, name, or rgb value.
object
An object with a color for dark and light modes.
{ dark: "string", light: "string" }