View as Markdown

API reference: @salmonui/notifications/toast

useToastfunction

import { useToast } from '@salmonui/notifications/toast';
function useToast(): ToastQueue;

The queue of the nearest Toaster. Throws outside a Toaster.