SearchCtrlK

  • ↑↓navigate
  • ↵open
  • escclose

Can’t find it? Contact us

toastClose

Removes toast id from toaster when its <dialog> host closes.

tsx
import { toastClose } from "@sdxc/ui/app";

Signature

typescript
toastClose(toaster: Toaster<unknown>, id: string): MixinDescriptor<HTMLDialogElement>

Parameters

ParameterTypeRequiredDescription
toasterToaster<unknown>Yes
idstringYes

Examples

tsx
<dialog open id="toast-1" mix={[toastClose(toaster, "1")]}>…</dialog>
@sdxc/ui

Can’t find it? Contact us