MDK Logo
UI Kitreact-devkitHooks

useNotification

Custom hook for showing notifications backed by the headless `notificationStore`. Uses `@tetherto/mdk-react-devkit/core` Toast and Toaster components.

Custom hook for showing notifications backed by the headless `notificationStore`. Uses `@tetherto/mdk-react-devkit/core` Toast and Toaster components.

import { useNotification } from "@tetherto/mdk-react-devkit";

Signature

() => { notifySuccess: (message: string, description?: string | undefined, options?: NotificationOptions | undefined) => void; notifyError: (message: string, description?: string | undefined, options?: NotificationOptions | undefined) => vo… /* see source */
Package@tetherto/mdk-react-devkit