Skip to content
  • Android
  • iOS
  • Web

Toast

A Toast component is a transient notification that appears on the screen to provide feedback or information to users without interrupting their workflow. Typically displayed at the top or bottom of the screen, toasts are brief messages that automatically disappear after a short duration. They are commonly used to inform users about actions such as successful submissions, updates, or alerts, enhancing the overall user experience with minimal disruption.

Live examples

Example.tsx

Static API

NToast static API
NameTypeDetails
show(message: string | NToastOptions, options?: Omit<NToastOptions, "message">) => void
success(message: string, options?: string | NToastOverrides) => void
error(message: string, options?: string | NToastOverrides) => void
info(message: string, options?: string | NToastOverrides) => void
warning(message: string, options?: string | NToastOverrides) => void
dismiss(id?: number) => void
clear() => void
Engine reference for ToastSet up engine components

Tags