Signature
Parameters
The toast title
Description string OR options object with description, duration, icon, style, etc.
Duration in milliseconds (default: 4000). Ignored if options object is passed as second parameter.
Toast options
When passing an options object as the second parameter, the following properties are available:Stable key for deduplication. When set, toasts with the same
id deduplicate and update the existing toast’s content.Description text
Duration in milliseconds (overrides default)
Custom icon (ReactNode or render function)
Style overrides for this toast’s container
Style overrides for this toast’s title
Style overrides for this toast’s description
Whether this toast can be dismissed via swipe (overrides config)
Whether to show the close button on this toast (overrides config)
Enable deduplication for this toast (overrides global config). Plays a pulse animation for non-error toasts or a shake for errors.