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

x/netzo/deps/sonner.ts>ToastT

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

Properties

id: number | string
optional
title: string | React.ReactNode
optional
type: ToastTypes
optional
icon: React.ReactNode
optional
jsx: React.ReactNode
optional
invert: boolean
optional
closeButton: boolean
optional
dismissible: boolean
optional
description: React.ReactNode
optional
duration: number
optional
delete: boolean
optional
important: boolean
optional
action: { label: React.ReactNode; onClick: (event: React.MouseEvent<HTMLButtonElement>) => void; }
optional
cancel: { label: React.ReactNode; onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void; }
optional
onDismiss: (toast: ToastT) => void
optional
onAutoClose: (toast: ToastT) => void
optional
promise: PromiseT
optional
cancelButtonStyle: React.CSSProperties
optional
actionButtonStyle: React.CSSProperties
optional
style: React.CSSProperties
optional
unstyled: boolean
optional
className: string
optional
classNames: ToastClassnames
optional
descriptionClassName: string
optional
position: Position