jyoti
₹130
A toast is a brief, non-disruptive message that provides quick feedback on an action in an app, typically appearing at the bottom of the screen and disappearing automatically after a short interval. Lightning Design System 2 Lightning Design System 2 +2 Key Characteristics of Toast Content: Concise: Content should be kept to a maximum of 3 words or a single short sentence (under 2 lines). Action-Oriented: Describes what has happened (e.g., "Message sent," "Changes saved"). Non-Interactive: Unlike alerts or snackbars, toasts cannot be swiped away or clicked; they appear and disappear without user interaction. Sentence Case: Write in sentence case (capitalized first word, lowercase rest) without ending punctuation. Timing: Toasts usually disappear automatically after 8 seconds (or fewer, based on length). about.gitlab.com about.gitlab.com +5 Common Use Cases: Confirmation: "Photo saved." Warnings: "No internet connection." Errors: "Upload failed." Toast vs. Snackbar: Use a toast for passive notifications that do not require user attention. Use a snackbar if the user needs to take action, such as "Undo" or "Retry". Android Developers Android Developers +3