Notification
Show a small popup notification to the user
Basic usage
Use the
showNotification
function to display a popup notification that clears in a few seconds.Notification types
Use the
type
field to display a notification with a built in icon and color.Customize the notification
Notifications can have an optional
title
and icon
in addition to the required message
.API
Name | Description | Default |
---|---|---|
message | string The message content of the notification. | |
title | string An optional title that appears above the message. | |
icon | Component An icon on the left side of the notification. | |
type | "info" | "success" | "error" The type of the notification. Renders a specific icon and color combination. | info |