duct-notification
v1.0.6
Published
Customizable notification framework
Downloads
17
Readme
using duct-notification
With duct-notification, you can show your notifications on the bottom shelf of the window for a specified period of time.
Demo
https://codeduct.com/duct-notification
duct-notification setup
npm
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 |