Socket
Socket
Sign inDemoInstall

notification-test

Package Overview
Dependencies
77
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    notification-test

🎉 notification-test allow you to add notification to your app with ease. No more nonsense!


Version published
Weekly downloads
0
Maintainers
1
Install size
11.6 MB
Created
Weekly downloads
 

Readme

Source

notification-test

🎉 notification-test allow you to add notification to your app with ease. No more nonsense!

Installation

$ npm install notification-test
$ yarn add notification-test

Usage

  import React, { Component } from 'react';
  import Tip from 'is-notification'

  class App extends Component {
    notify = () => {
       Tip.open({
        message:'message',
        description:'description'
       })
    }

    render(){
      return (
        <div>
          <button onClick={this.notify}>Notify !</button>
        </div>
      );
    }
  }

Set autoclose delay or disable it

   Tip.open({
    message:'message',
    description:'description',
    duration: 0
   })

Notifications with color reminders

   Tip.info({
    message:'info',
    description:'info'
   })
   Tip.success({
    message:'success',
    description:'success'
   })
   Tip.warning({
    message:'warning',
    description:'warning'
   })
   Tip.error({
    message:'error',
    description:'error'
   })

Notifications position

   Tip.info({
    message:'info',
    description:'info',
    placement: 'topLeft'
   })
   Tip.success({
    message:'success',
    description:'success',
    placement: 'bottomLeft'
   })
   Tip.warning({
    message:'warning',
    description:'warning',
    placement: 'topRight'
   })
   Tip.error({
    message:'error',
    description:'error',
    placement: 'bottomRight'
   })

FAQs

Last updated on 23 May 2019

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc