Skip to main content

Overview

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

Installation

You can install the Vue SDK from npm or yarn

Prerequisites

  • Vue 3 (v3.0.0+)

Configuration

Initialization

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

Configure Notification Inbox

Once the provider is configured, add the notification inbox component:

Inbox Props

CardProps

HeaderProps

Inbox Slots

Customize components using these slots:

Customization

Theme Customization

Style Customization

Hooks

useSiren

The useSiren hook provides utility functions for modifying notifications:

useSiren Functions

Example

Here’s a complete example of using the Vue.js Inbox SDK:

Troubleshooting

Common Issues

  1. SDK Not Initializing
    • Ensure you have wrapped your app with SirenProvider
    • Verify your userToken and recipientId are correct
    • Check the browser console for any error messages
  2. Notifications Not Displaying
    • Confirm the user has notifications in the system
    • Check your network requests for any API errors
    • Verify the user has the correct permissions
  3. Styling Issues
    • Ensure your custom styles do not conflict with the SDK’s styles
    • Check for any CSS specificity issues
    • Verify all required theme properties are provided if using custom themes