• Access the imperative toast API: show(message, { duration, intent }) returns the toast element, dismiss(toast) removes it. Works with or without a mounted ToastRegion.

    const toast = useToast();
    toast.show('Saved', { intent: 'success' });

    Returns ToastApi