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

react-notification

Package Overview
Dependencies
Maintainers
1
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-notification

Snackbar style notification component for React.

  • 0.1.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3.3K
increased by1.94%
Maintainers
1
Weekly downloads
 
Created
Source

react-notification npm version Dependency Status

Overview

This is a component designed to provide "snackbar" notification messages.

Warning: this is a major version zero release. The component is still under development and the API may change at any time. Please report issues and bugs on GitHub.

Getting Started

  1. First, install the component via npm: npm install react-notification
  2. Require the component: var Notification = require('react-notification');

Usage

<Notfication
  message={string}
  action={string}
  onClick={func}
/>

Props

NameTypeDescription
messagestringThe message for the notification
actionstringThe name of the action, e.g., "close" or "undo"

Methods

MethodUsage
showNotification.show()Opens the notification.
hideNotification.hide()Hides the notifciation.

Events

EventDescription
onClickFuction runs on change

DOM Nodes

As this component does not include CSS styles to use, you will need to add your own styles. The DOM tree of the component is included below for reference.

<div class="notficiation-bar">
  <div class="notfication-bar-wrapper" onClick={this.props.onClick}>
    <span class="notfication-bar-message">{this.props.message}</span>
    <span class="notification-bar-action">{this.props.action}</span>
  </div>
</div>

Built with care in New Orleans by Patrick Burtchaell.

Copyright 2014 Patrick Burtchaell. Licensed MIT.

Keywords

FAQs

Package last updated on 20 Feb 2015

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