navigateui-toast
TypeScript icon, indicating that this package has built-in type declarations

1.0.17 • Public • Published

NavigateUI Toast Hooks

A type-safe toast notification hook package for React and Next.js projects.

Installation

npm install navigateui-toast

Usage

Call the toast function anywhere in your app:

import { toast } from "navigateui-toast";

// Show a success toast
toast("Action completed!", {
  type: "success",
  duration: 3000,
});

// Show an error toast
toast("Something went wrong!", { type: "error" });

// Show an info toast
toast("Check this out!", { type: "info" });

Package Sidebar

Install

npm i navigateui-toast

Weekly Downloads

5

Version

1.0.17

License

MIT

Unpacked Size

21.3 kB

Total Files

9

Last publish

Collaborators

  • mhlehri