This guide outlines the key differences between the @novu/notification-center
package and the new @novu/react
package. Follow the steps below to migrate your application to the latest version.
@novu/react
package introduces a more flexible and customizable way to display notifications in your application. This guide outlines the key differences between the @novu/notification-center
package and the new @novu/react
package. Follow the steps below to migrate your application to the latest Inbox version.
@novu/react
package provides more customization options for the appearance and behavior of the notification components.@novu/framework
: The @novu/react
package is designed to work seamlessly with the @novu/framework
package for creating and managing notifications.@novu/react
package introduces several breaking changes compared to the @novu/notification-center
package. Here are the key differences:
PopoverNotificationCenter
component has been replaced with the Inbox
component.NotificationCenter
component has been replaced with the Notifications
component.NotificationBell
component has been replaced with the Bell
component.styles
props is replaced by an enchanced and easy to use appearance
prop to customize the appearance of the notification components. For more information on appearance
customization visit here.seen
, lastSeenDate
, content
, templateIdentifier
, payload
, cta
properties from the Notification object.archive
functionality to the Notification object.@novu/react
, install the package via npm:
@novu/react
Inbox
and Notifications
components to achieve this functionality.
@novu/react
renderBell
prop.
@novu/react
@novu/react
.
@novu/react
@novu/react
URL
at the workflow definition level using @novu/framework
.
@novu/react
and Radix UI as an examplerenderNotification
prop.
@novu/react
@novu/react
appearance
customization visit here.
@novu/react
read
method provided by the notification object.
unread
method provided by the notification object.
archive
method provided by the notification object.
unarchive
method provided by the notification object.