toastClose
Removes toast id from toaster when its <dialog> host closes.
import { toastClose } from "@sdxc/ui/app";Signature
toastClose(toaster: Toaster<unknown>, id: string): MixinDescriptor<HTMLDialogElement>Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
toaster | Toaster<unknown> | Yes | |
id | string | Yes |
Examples
<dialog open id="toast-1" mix={[toastClose(toaster, "1")]}>…</dialog>