Skip to main content

Custom id

Supports ability to set a custom id for the toast.

Example

import { toast } from "@toastup/react";

const id = toast.add({ id: "99" });
console.log(id); // 99
info

id option is available only for the add function.