Interface: Notification
Indexable
[
key:symbol]:boolean
Properties
actions?
optionalactions?:ButtonActions[]
An array of button actions to add to the notification
content?
optionalcontent?:ReactNode
The content of the notification
duration?
optionalduration?:number
How long the notification should be shown in milliseconds
icon?
optionalicon?:ComponentType<any>
A React component to use as a custom icon for the notification
id
id:
string
A unique id for the notification, will not be shown if another notification with the same id is already being shown
title?
optionaltitle?:string
The title of the notification
type?
optionaltype?:NotificationType
The type of the notification which changes the color and icon
Methods
onClose()?
optionalonClose():void
A callback which is run when the notification is closed manually or automatically
Returns
void