duct notification

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

Name

Value

Default Value

type

Specifies the type of notifications. danger, warning, success, info

info

timer

determines the display time of the notification in milliseconds

3000

head

Represents the title in the notification box

empty

message

Represents the Descriptive text in the notification box

required

hideClose

Determines the status of the hide button on the notification area

false

No recent searches