1.0.6 • Published 11 months ago

duct-notification v1.0.6

Weekly downloads
-
License
ISC
Repository
-
Last release
11 months ago

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

NameValueDefault Value
typeSpecifies the type of notifications. danger, warning, success, infoinfo
timerdetermines the display time of the notification in milliseconds3000
headRepresents the title in the notification boxempty
messageRepresents the Descriptive text in the notification boxrequired
hideCloseDetermines the status of the hide button on the notification areafalse
1.0.6

11 months ago

1.0.5

11 months ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.0

1 year ago