duct notification

With duct-notification, you can show your notifications on the bottom shelf of the window for a specified period of time.

duct-notification setup

npm i duct-notification

Add the duct-notification package in the component you want to use after installation.

import notification from 'duct-notification'

ready to use

notification({
  type : 'success',
  head : 'Information Notification',
  message : 'Lorem ipsum, dolor sit amet consectetur adipisicing elit. Dicta quaerat1',
  timer : 15000,
  hideClose : true
})

You can send your notifications within the notification function.

Parameters

NameValueDefault Value
type Specifies the type of notifications. danger, warning, success, info info
timer determines the display time of the notification in milliseconds 3000
headRepresents the title in the notification boxempty
messageRepresents the Descriptive text in the notification boxrequired
hideClose Determines the status of the hide button on the notification area false