ToasterConfig
Defined in: ui/Toaster.ts:29
Configuration interface for the Toaster component, which manages toast notifications.
Example
Section titled “Example”// Basic toaster in top-right cornerconst config: ToasterConfig = { position: 'top right', maxToasts: 3};
// Custom toaster with specific spacing and offsetconst config: ToasterConfig = { position: 'bottom center', maxToasts: 5, spacing: 15, offset: { x: 20, y: 30 }, stackDirection: 'up'};
Properties
Section titled “Properties”animationSpeed
Section titled “animationSpeed”animationSpeed:
number
Defined in: ui/Toaster.ts:41
maxToasts?
Section titled “maxToasts?”
optional
maxToasts:number
Defined in: ui/Toaster.ts:33
Maximum number of toasts to show at once
offset?
Section titled “offset?”
optional
offset:number
| {x
:number
;y
:number
; }
Defined in: ui/Toaster.ts:37
Distance from screen edges, can be a number for equal x/y or an object for different values
position?
Section titled “position?”
optional
position:UICanvasEdge
Defined in: ui/Toaster.ts:31
Position of toasts relative to the screen edges
spacing?
Section titled “spacing?”
optional
spacing:number
Defined in: ui/Toaster.ts:35
Vertical spacing between toasts
stackDirection?
Section titled “stackDirection?”
optional
stackDirection:"up"
|"down"
Defined in: ui/Toaster.ts:39
Direction in which new toasts should stack