npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

react-notifywave

v1.0.1

Published

**react-notifywave** is a React component library that provides an easy way to create and display notifications with smooth animations. It simplifies the process of adding stylish and user-friendly notifications to your React applications. Whether you wan

Downloads

2

Readme

react-notifywave

react-notifywave is a React component library that provides an easy way to create and display notifications with smooth animations. It simplifies the process of adding stylish and user-friendly notifications to your React applications. Whether you want to show success messages, error alerts, or any other type of notifications, react-notifywave has got you covered.

With react-notifywave, you can customize the appearance, animation, and behavior of notifications to suit your application's design and user experience. The library offers a variety of pre-built notification styles and also allows you to create your own custom styles.

Installation

You can easily install react-notifywave using npm or yarn:

npm install react-notifywave

or

yarn add react-notifywave

Usage

  1. Import the necessary components from react-notifywave in your React component:
import { NotificationProvider } from "react-notifywave";
  1. Wrap your application or the desired part of your application with the NotificationProvider component. This should be placed at the top level of your component hierarchy:
<React.StrictMode>
  <NotificationProvider position="top_right">
    <App />
  </NotificationProvider>
</React.StrictMode>
  1. To display a notification, use the NotificationManager:
import { useNotification } from "react-notifywave";

function MyComponent() {
  const { notify } = useNotification();

  const showNotification = () => {
    notify("This is a success message", "success", 3000, "contain");
  };

  return (
    <div>
      <button onClick={showNotification}>Show Notification</button>
    </div>
  );
}

useNotification-Hook

The useNotification provides methods to show different types of notifications:

  • success(message: string, type: 'success', duration?: number, variant: string): Display a success notification.
  • error(message: string, type: 'error', duration?: number, variant: string): Display an error notification.
  • info(message: string, type: 'info', duration?: number, variant: string): Display an info notification.
  • warning(message: string, type: 'warning', duration?: number, variant: string): Display a warning notification.

The NotificationProvider should be wrapped around your application to render notifications. It doesn't require any props.

Demo

For Demo please visit: https://react-notifywave.vercel.app

For more detailed information, examples, and customization options, please refer to the official documentation of react-notifywave.

If you encounter any issues or have suggestions, feel free to create an issue on the GitHub repository. We welcome your feedback and contributions!

GitHub Repository: https://github.com/rupenjarsaniya/react-notifywave

Customization

react-notifywave provides options for customizing the appearance and behavior of notifications. You can override the default notification styles, animation duration, and other settings to match your application's aesthetics and needs. Check the documentation for more information on customization options.