
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
react-notification
Advanced tools
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.
npm install react-notification
var Notification = require('react-notification');
<Notfication
message={string}
action={string}
onClick={func}
/>
Name | Type | Description |
---|---|---|
message | string | The message for the notification |
action | string | The name of the action, e.g., "close" or "undo" |
Method | Usage | |
---|---|---|
show | Notification.show() | Opens the notification. |
hide | Notification.hide() | Hides the notifciation. |
Event | Description |
---|---|
onClick | Fuction runs on change |
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.
FAQs
Snackbar notifications for React
The npm package react-notification receives a total of 2,531 weekly downloads. As such, react-notification popularity was classified as popular.
We found that react-notification demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
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.
Security News
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.