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

department-notifications

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

department-notifications

Drop in redux notifications for department.

  • 0.2.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-60%
Maintainers
1
Weekly downloads
 
Created
Source

Department Notifications Package

Drop in redux notifications for department.

Demo

Installation

npm i department-notifications --save

Usage

The package is based on redux, so you need to use the notificationsReducer in your store. Then you need to import the Notifications component somewhere near the root element.

const reducer = combineReducers({
  notifications: notificationsReducer
})

const App = () => (
  <section>
    <Notifications />
    <section className="contents">
      <p>App</p>
    </section>
  </section>
)

You can check the example directory for a small example.

Styling

There is an optional scss file, it is recommended to import it.

@import '~department-notifications/styles/notifications';

Sass variables

VariableValue
$notifications-width300px
$notifications-corner-offset20px
$notifications-font-size1.3
$notifications-font-weight600
$notifications-padding12px 17px
$notifications-border-radius3px
Colors
$notifications-primary-bg-color#3598CF
$notifications-primary-color#FFFFFF
$notifications-success-bg-color#1AB342
$notifications-success-color#FFFFFF
$notifications-warning-bg-color#FF9800
$notifications-warning-color#FFFFFF
$notifications-danger-bg-color#F33534
$notifications-danger-color#FFFFFF

Packages used:

  • js
    • redux (notifications store)
    • react-addons-css-transition-group (notifications animations)
  • css
    • department-base (common styles)

License

MIT

Keywords

FAQs

Package last updated on 08 Aug 2016

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