UNPKG

a-notification

Version:

simple customizable notification box

32 lines (21 loc) 585 B
# A Notification Generate dynamic customizable notifications! ## Installation Use the package manager npm to install a-notification. ```bash npm install a-notification ``` ## Usage ```javascript import { notification } from 'a-notification'; notification('Success Message', 'success', 3000, 'custom-class'); ``` ## Parameters | Key | Type | | ------------ | ------- | | message | string | | type | success, info, warning, error, dark | | duration | number | | customClass | string | ## License [MIT](https://choosealicense.com/licenses/mit/)