Cookbook / Toast

Toast

container

Toast — auto-dismiss via onMount setTimeout, manual dismiss action, aria-live polite status region.

id
aihu-toast
since
0.5.0
file
aihu-toast.aihu
propstateactiononMountonDisposeshowon:clickinterpolation

Run it

source · static

This recipe doesn't have a hydrated island in the demo gallery yet. An in-browser, WASM-compiled playground (edit this source and re-render live) is planned as a follow-up — read the real source below.

Source

aihu-toast.aihu

Requires

concerns
statea11y

Anti-patterns

  • Do not auto-dismiss without clearing the timer in onDispose — a disposed toast must not fire a dangling timeout.

Related recipes