Skip to main content

Overview

Notifications gives you maximum flexibility:
  • Headless component - no built-in button or modal
  • Full CSS control via CSS custom properties
  • Embed anywhere - sidebars, modals, dedicated pages
  • Complete brand integration with custom themes
  • Advanced styling for individual notification types
Choose this component if you want:
  • ✅ Complete design control and custom styling
  • ✅ Embed in your own modal, sidebar, or layout
  • ✅ Full brand integration with CSS variables
  • ✅ Custom notification type styling
  • ❌ Need to build your own button/modal logic

Prerequisites

Before implementing the Notifications component, ensure you have completed:

Basic Usage

Simple Integration

With Close Button

If you want users to be able to close the notification panel:

Configuration Options

Channel Configuration

Control which additional notification channels users can configure:
Available additional channels:
  • "email" - Email notifications
  • "telegram" - Telegram bot notifications
  • In-app - Always enabled (not configurable)

Custom Styling

CSS Variables Overview

The Notifications component uses CSS custom properties for complete theme control:

Basic Brand Customization

Override CSS variables to match your brand:
Important: Import order matters:

Complete CSS Variable Reference

Dark Theme

The component automatically applies dark theme when using the theme prop:
You can also customize dark theme colors:

Auto Theme Detection

Automatically switch themes based on user preferences:

Layout Integration Examples

Full Page Integration

Troubleshooting

Styling not applying:
  • Ensure CSS import order is correct
  • Check CSS specificity - you may need !important
  • Verify CSS variables are defined on .dialect class
Component not displaying:
  • Verify dappAddress is correct and app is registered
  • Check wallet connection status
  • Ensure parent container has appropriate dimensions
Performance issues:
  • Consider lazy loading for modals/conditional displays
  • Use CSS containment for better rendering performance
  • Implement virtualization for large notification lists

Next Steps

The Notifications component provides complete control over notification display and styling, perfect for creating fully branded notification experiences.