Auto hide
Allows to set a time in ms after which the toast is hidden automatically.
Example
import { toast, Toaster } from "@toastup/react";
import "@toastup/react/style";
export function AutoHideExample() {
const handleClick = () => toast.add({ autoHide: 10000 });
return (
<div>
<button onClick={handleClick}>Add toast</button>
<Toaster />
</div>
);
}