TheĀDocumentation Index
Fetch the complete documentation index at: https://v0.x-docs.novu.co/llms.txt
Use this file to discover all available pages before exploring further.
@novu/notification-center-vueĀ package provides a Vue component wrapper over the Notification Center Web Component that you can use to integrate the notification center into your Vue application.
Installation
Novu supports only Vue 3.
The plugin
The Notification Center Vue plugin can be used to register theĀNotificationCenterComponentĀ as a global component. This is the recommended way to use the component.
Example usage
NotificationCenterComponentĀ renders the default bell button that opens the notification center when clicked, but it can be customized.
Custom Bell Button
You can pass the custom bell button component as the default slot to theĀNotificationCenterComponentĀ and it will be used to open the notification center. TheĀ NotificationCenterComponentĀ also accepts a scoped slot which exposes theĀ unseenCountĀ property - the number of unseen notifications counts.
Example
Props
TheNotificationCenterComponent accepts the same set of props as the Web Component.
It also accepts an extra prop
| Prop | Type | Description |
|---|---|---|
| triggers | string[] | This is an Array of events that controls the underlying popper componentās trigger. Read more here |