https://github.com/javadbat/jb-notification
notification ui web-component
https://github.com/javadbat/jb-notification
Last synced: 2 months ago
JSON representation
notification ui web-component
- Host: GitHub
- URL: https://github.com/javadbat/jb-notification
- Owner: javadbat
- License: mit
- Created: 2023-10-03T03:47:40.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-04-23T14:18:41.000Z (2 months ago)
- Last Synced: 2025-04-23T15:31:09.187Z (2 months ago)
- Language: TypeScript
- Size: 25.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# jb-notification
notification ui web component to show notification directly from pure js code without any framework## set title & description
```js
document.querySelector('jb-notification').title = "Information Message";
document.querySelector('jb-notification').description = "optional detail about what happen you may not set it";
```
```html
```
## set notification type
```js
document.querySelector('jb-notification').type = "SUCCESS";
```
```html
```
## MessageTypes:we have several types of message the types are : `SUCCESS`,`ERROR`,`WARNING`,`INFO`;