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

@academy-ui/notification

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@academy-ui/notification

Web component implementation of a notification styled UI. Inspired around Firebase's notification styling.

  • 1.0.3
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Notification Controller

Web component implementation of a notification styled UI. Inspired around Firebase's notification styling.

Image

Implementation

Using Locally

  • npm install @academy-ui/notification --save
  • Put a script tag similar to this <script src='node_modules/@academy-ui/notification/dist/notification-controller.js'></script> in the head of your index.html
  • Then you can use the element anywhere in your template, JSX, html etc

Using a CDN

  • Put a script tag similar to this <script src='https://unpkg.com/@academy-ui/notification@1.0.3/dist/notification-controller.js'></script> in the head of your index.html
  • Then you can use the element anywhere in your template, JSX, html etc

Note: For all implementations you need to include the notification-controller in the root index.html of your project.

<notification-controller class="top-right"></notification-controller>

Available styling placement classes include:

  • top-left
  • top-right
  • top-center
  • bottom-left
  • bottom-right
  • bottom-center

Usage

Success Messages

document.getElementsByTagName('notification-controller').item(0).success('This is a success alert.');

Error Messages

document.getElementsByTagName('notification-controller').item(0).error('This is an error alert.');

Warning Messages

document.getElementsByTagName('notification-controller').item(0).warning('This is a warning alert.');

Info Messages

document.getElementsByTagName('notification-controller').item(0).error('This is an info alert.');

Note: You can pass the full options config instead of a string message to control other properties such as icons, durations, individual notification animations, etc.

FAQs

Package last updated on 02 Dec 2018

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