The ui5-toast is a small, non-disruptive popup for success or information messages that
disappears automatically after a few seconds.
Usage  
When to use:  
You want to display a short success or information message. 
You do not want to interrupt users while they are performing an action. 
You want to confirm a successful action. 
 
When not to use:  
You want to display error or warning message. 
You want to interrupt users while they are performing an action. 
You want to make sure that users read the message before they leave the page. 
You want users to be able to copy some part of the message text. 
 
ES6 Module Import  
import "@ui5/webcomponents/dist/Toast.js";
Basic Sample  
 Download Open in Playground Edit 
Properties  
duration  
Description Defines the duration in milliseconds for which component remains on the screen before it's automatically closed.Note:  The minimum supported value is 500 ms and even if a lower value is set, the duration would remain 500 ms. Type numberDefault 3000 
placement  
Description Defines the placement of the component. Type "TopStart" | "TopCenter" | "TopEnd" | "MiddleStart" | "MiddleCenter" | "MiddleEnd" | "BottomStart" | "BottomCenter" | "BottomEnd"Default "BottomCenter" 
open  
Description Indicates whether the component is open (visible). Type booleanDefault false Since 2.0.0 
Slots  
default  
Description Defines the text of the component.Note:  Although this slot accepts HTML Elements, it is strongly recommended that you only use text in order to preserve the intended design. Type Array<Node>
Events  
close  
Description Fired after the component is auto closed. Type CustomEventSince 2.0.0 Bubbles No Cancelable No 
Methods  
No methods available for this component.
CSS Parts  
No CSS parts available for this component.
More Samples  
Duration  
 Download Open in Playground Edit 
Placement  
 Download Open in Playground Edit