Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

reactive-hermes

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

reactive-hermes

A notification manager for react

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

Hermes, the notifier

Hermes notifier header

Hermes is a notification message manager.
It deals with your messages in your page's interface.

It can be used to replace other messagers. Has a lighter, malleable design and animations.
You can even manage messages by id, simulate a loading controller or show an entire react component in it.

Take a look.

Installing

**TODO**

Using it

You need to import and add the HermesComponent to your interface.
You should do that once, let's say, in your root page for example.

import { HermesComponent } from 'hermes'

[...]

<HermesComponent [defaultDuration={999}] [updateTitleCounter] />

Now, you can access the global Hermes object, or import it in your modules and then use its API, described below.

API

Let's see some of the cool things you can do with it!

Props

You can send some props to enforce a default behavior:

  • defaultDuration: An integer representing the duration of the message in seconds. By default, it will not close itself.
  • updateTitleCounter: Boolean. If present, will update the page's title adding the number of open notifications.

Methods

These are methods you can acces at Hermes:

TODO

Compatibility

Are you using methods like showWarning and showSuccess?
No problem, you can just import them from Hermes too!

import { showerror, showSuccess } from 'hermes'

Keywords

FAQs

Package last updated on 16 Jul 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc