Notifications
<NotificationBell/>

Notification Bell UI component

Introduction

The <NotificationBell/> component renders a bell symbol which informs the user about unread notifications. It opens the Notification Modal UI Component on click. Please refer to the notifications feature guide for more information and instructions.

notification-bell-light

See this component in action on Storybook (opens in a new tab).

Integration

ℹ️

Before you can use these UI Components, please do the basic setup.

<NotificationBell/>

The bell symbol can be integrated by adding this component to your application:

import { NotificationBell } from '@roq/ui-react';
 
function TopBar() {
  return (
     <NotificationBell />
  );
}

<NotificationBell/> Props list

PropTypeDescriptionDefault
type"all" or "unread"Controls the tab that is active by default"all"
modalOpenbooleanControls the state of the modalfalse
iconReactNodeUsed to replace the existing bell iconCurrent icon
onUnseenCountChangedfunctionCallback, fired when a new notification is received, or an existing one is readnull