Toast
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​
Properties​
duration​
placement​
Slots​
default​
Events​
No events available for this component.
Methods​
show​
CSS Parts​
No CSS parts available for this component.