Toast
Feedback
Temporary notification.
Toast(message, tone: …)
Example
state saved = false
if saved { Toast("Saved").success }
Renders with the class wf-toast, stable across releases, so a stylesheet may target it.
| Prop | Type | Meaning |
|---|---|---|
| message | String (positional) |
The message |
| tone: | .success .danger .warning .info |
Kind of notice |
Attribute families: global, aria, data. Plus the universal props on every element: animate:, exit:, speed:, class:, ref:.