Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/netzo/deps/sonner.ts>toast

Full-stack Deno framework for building business web apps like internal tools, dashboards, admin panels and automated workflows.
Go to Latest
variable toast
import { toast } from "https://deno.land/x/netzo@0.4.62/deps/sonner.ts";

type

((message: string | React.ReactNode, data?: ExternalToast) => string | number) & { success: (message: string | React.ReactNode, data?: ExternalToast) => string | number; info: (message: string | React.ReactNode, data?: ExternalToast) => string | number; warning: (message: string | React.ReactNode, data?: ExternalToast) => string | number; error: (message: string | React.ReactNode, data?: ExternalToast) => string | number; custom: (jsx: (id: number | string) => React.ReactElement, data?: ExternalToast) => string | number; message: (message: string | React.ReactNode, data?: ExternalToast) => string | number; promise: <ToastData>(promise: PromiseT<ToastData>, data?: PromiseData<ToastData>) => string | number; dismiss: (id?: number | string) => string | number; loading: (message: string | React.ReactNode, data?: ExternalToast) => string | number; }