react-notification
Advanced tools
Comparing version 1.0.1 to 1.0.2
{ | ||
"name": "react-notification", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Snackbar style notification component for React.", | ||
@@ -5,0 +5,0 @@ "main": "web_modules/notification.js", |
@@ -9,4 +9,2 @@ # react-notification [![npm version](https://badge.fury.io/js/react-notification.svg)](http://badge.fury.io/js/react-notification) [![Dependency Status](https://david-dm.org/pburtchaell/react-classes.svg)](https://david-dm.org/pburtchaell/react-notification) | ||
*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](https://github.com/pburtchaell/react-notification/issues).* | ||
## Getting Started | ||
@@ -68,3 +66,3 @@ | ||
<div class="notfication-bar-wrapper" onClick={this.props.onClick}> | ||
<span class="notfication-bar-message">{this.props.message}</span> | ||
<span class="notification-bar-message">{this.props.message}</span> | ||
<span class="notification-bar-action">{this.props.action}</span> | ||
@@ -75,3 +73,3 @@ </div> | ||
To use additional inline styles, return two objects. The `bar` object applies styles to the entire notification "snackbar" and the `action` object applies styles to the action message. Under the hood, this uses `Object.assign` to handle properly combining styles. | ||
To use additional inline styles, return two objects. The `bar` object applies styles to the entire notification "snackbar" and the `action` object applies styles to the action message. Under the hood, this uses `Object.assign` to handle properly combining styles. | ||
@@ -78,0 +76,0 @@ I would highly suggest using this method since the styles included in the component by default handle the visibility of the notification. If you remove these styles, the component won't actually show or hide itself. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
30849
107