In-App Notifications
Add a real-time notification inbox to your React, Next.js or web application in under 5 minutes. Drop-in Inbox component with customizable theming, bell icons, and event handling.
In-App Notifications
TL;DR — Install
@enbbox/react, add the<Inbox />component with your project ID and subscriber ID, create an In-App workflow in the dashboard, and trigger notifications via the API. Total setup: under 5 minutes.
Add a real-time notification inbox to your application with the Enbbox Inbox component.
Install the SDK
npm install @enbbox/reactAdd the Inbox Component
"use client";
import { Inbox } from "@enbbox/react";
export function NotificationCenter() {
return (
<Inbox
projectId={process.env.NEXT_PUBLIC_ENBBOX_PROJECT_ID!}
subscriberId={currentUser.id}
/>
);
}Inbox Component Features
| Feature | Description |
|---|---|
| Real-time updates | Notifications appear instantly via WebSocket/SSE |
| Customizable theme | Match your application's design system |
| Bell icon | Built-in notification bell with unread count |
| Mark as read | Individual and bulk read/unread actions |
| Action buttons | Configurable CTA buttons per notification |
| Event handling | Hook into notification click, dismiss, and action events |
Create an In-App Workflow
In the dashboard, create a workflow with an In-App step:
- Go to Workflows → New Workflow
- Add an In-App step
- Configure subject, body, and action buttons
- Save and activate
Trigger Notifications
await enbbox.trigger("new-message", {
to: { subscriberId: recipientId },
actor: { subscriberId: senderId },
payload: {
message: "Hey, check this out!",
conversationId: "123",
},
});Customization
See Inbox Overview for full customization options including theming, custom bell icons, and event handling.
Next Steps
- Push Notifications — Add mobile push to your workflow
- Email Notifications — Configure email delivery
- Digest Notifications — Batch notifications for better UX
Welcome Emails
Build a welcome email workflow with Enbbox. Step-by-step tutorial for creating an automated welcome email that triggers on user signup.
Digest Notifications
Implement notification digests with Enbbox. Reduce notification fatigue by batching multiple events into periodic summary notifications.