Toast
The Show Toast action displays a temporary, customizable notification message to provide user feedback. Toasts appear as floating overlays that automatically disappear after a specified duration, making them ideal for non-intrusive confirmations, alerts, or status updates.

✅ Common Use Cases
Showing success messages after form submissions
Confirming actions like "Item saved" or "Copied to clipboard"
Displaying error messages or warnings
Providing feedback after API calls or data operations
Alerting users about background processes
⚙️ Default Behavior
By default:
Duration
Toast displays for 2 seconds before auto-dismissing
Position
Appears at the bottom center of the screen
Appearance
Black background with white text, rounded corners
Size
Auto-sized based on content (customizable)
Interaction
Non-interactive - cannot be tapped or dismissed manually
🛠️ How to Use
Add the action to a widget event (e.g., button tap, form submission)
Choose Show Toast from the action list
Set the
messagetext to displayOptionally customize
durationandstyleproperties
📦 Properties
message
Expression (String)
✅
The text content to display in the toast
duration
Expression (Number)
❌
Display duration in seconds (default: 2)
style
Object
❌
Visual styling configuration
🎨 Style Configuration
The style object supports extensive customization:
bgColor
String
Background color (hex code or color name)
"#000000"
borderRadius
String
Corner radius (comma-separated: topLeft,topRight,bottomRight,bottomLeft)
"12,12,12,12"
height
Number
Toast height in pixels
Auto-sized
width
Number
Toast width in pixels
Auto-sized
padding
String
Inner spacing (comma-separated: left,top,right,bottom)
"24,12,24,12"
margin
String
Outer spacing (same format as padding)
None
alignment
String
alignment within toast
"center"
💡 Examples
Basic Success Message:
Error Toast with Custom Styling:
Dynamic Message from State:
API Response Feedback:
Custom Styled Confirmation:
Last updated