📦 Smart Supply Pro Docs 🧩 Frontend API
Backend Architecture Backend Architektur Deutsch Frontend Architecture Frontend Architektur Deutsch Backend API Frontend API Backend Coverage Frontend Coverage

Frontend API

  • API Home

Quick Links

  • Frontend Coverage
  • Frontend Architecture

Project

  • Docs Home
  • Backend API
  • Backend Coverage

Reference

  • Modules

On this page

  • Function: useToast()
    • Returns
    • Throws
    • Example

frontend


frontend / context/toast/ToastContext / useToast

Function: useToast()

useToast(): ToastFn

Defined in: src/context/toast/ToastContext.ts:61

Access the toast function provided by AppShell or AppPublicShell.

Returns

ToastFn

Toast function to display notifications with optional severity

Throws

Error if used outside of a matching provider

Example

const toast = useToast();
toast('Success!', 'success');
toast('Warning!', 'warning');
Smart Supply Pro · Frontend API · Generated by Docs Pipeline