Skip to main content

Overview

The @sirenapp/react-inbox SDK is a comprehensive and customizable React UI kit for displaying and managing notifications. This documentation provides comprehensive information on how to install, configure, and use the SDK effectively.

Installation

Prerequisites

  • React v16.8+

Configuration

Initialization

Initialize the SDK with user token and recipient ID. Wrap the provider around your App’s root.

Configure Notification Inbox

Once the provider is configured, the next step is to set up the notification inbox. The SirenInbox component provides a paginated list view for displaying notifications.

Props for the Notification Inbox

Customization

Customize the appearance of the notification inbox using themes:
Theme Customization
Customize the styling of various components:
Style Customization

Component Props

CardProps

InboxHeaderProps

Hooks

useSiren

The useSiren hook provides utility functions for modifying notifications:

useSiren Functions

Complete Example

Here’s a complete example of implementing the Siren React Inbox: