Props & events
Attributes & behavior classes
Configured entirely through the FlickUI.toast() options object — there is no markup to author.
| Attribute / class | Purpose |
|---|---|
title / body | Headline and message text |
variation | 'info' (default) | 'success' | 'warning' | 'danger' |
duration | Milliseconds before auto-hide; 0 requires manual dismissal |
position | Which of the six screen corners/edges the toast stacks in |
Events
FlickUI.toast() returns the created element, which you can pass to FlickUI.dismiss() yourself.
| Event | Description |
|---|---|
flick:dismiss | Fired when a toast is dismissed, either automatically or via FlickUI.dismiss(). |