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?”
optionalmaxToasts:number
Defined in: ui/Toaster.ts:33
Maximum number of toasts to show at once
offset?
Section titled “offset?”
optionaloffset: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?”
optionalposition:UICanvasEdge
Defined in: ui/Toaster.ts:31
Position of toasts relative to the screen edges
spacing?
Section titled “spacing?”
optionalspacing:number
Defined in: ui/Toaster.ts:35
Vertical spacing between toasts
stackDirection?
Section titled “stackDirection?”
optionalstackDirection:"up"|"down"
Defined in: ui/Toaster.ts:39
Direction in which new toasts should stack