yarcl
    Preparing search index...

    Function toast

    • Shows a toast notification. Requires one Toaster rendered in the app. Returns the toast's id, for toast.dismiss.

      Parameters

      Returns string

      toast({ title: 'Saved', color: 'success' });
      toast({ title: 'Message deleted', action: { label: 'Undo', onClick: restore } });
    Index
    • Dismisses a toast by id, or all toasts when called without one.

      Parameters

      • Optionalid: string

      Returns void