Customize and configure

Customize Icons in the Inbox

Learn how to override the default icons in the Inbox UI using the appearance prop.

You can customize or replace all the default icons in the Inbox UI with custom icons from your preferred library, such as react-icons or Material Icons, to match your visual style using the icons' key in the appearance prop.

For each icon that you want to customize, provide a function that returns your custom icon as a React component.

import { Inbox } from '@novu/react';
import { RiSettings3Fill, RiArrowDownLine, RiNotification3Fill} from 'react-icons/ri';
 
const appearance = {
    icons: {
      cogs: () => <RiSettings3Fill />,
      arrowDown: () => <RiArrowDownLine />,
      bell: () => <RiNotification3Fill />,
    },
  };
 
export function Novu() {
  return (
    <Inbox
      applicationIdentifier="YOUR_APPLICATION_IDENTIFIER"
      subscriber="YOUR_SUBSCRIBER_ID"
      appearance={appearance}
    />
  );
}

List of customizable icons

Use these keys in the appearance.icons property to customize specific icons in the Inbox component:

Icon keyDescription
arrowDownDown arrow used in drop-downs and expandable sections
arrowDropDownDrop-down arrow in menus and selectors
arrowLeftLeft arrow used in pagination and navigation
arrowRightRight arrow used in pagination and navigation
bellNotification bell icon in the header
chatChat channel icon in notification preferences
checkCheckmark icon used for selected items
clockDate/time display for notifications
cogsSettings/preferences icon in the header
dotsMore options menu (three dots) in notification items
emailEmail channel icon in notification preferences
inAppIn-app channel icon in notification preferences
markAsArchivedIcon for archiving notifications
markAsArchivedReadIcon for marking notifications as archived and read
markAsReadIcon for marking notifications as read
markAsUnreadIcon for marking notifications as unread
markAsUnarchivedIcon for unarchiving notifications
pushPush notification channel icon in preferences
smsSMS channel icon in notification preferences
trashDelete/remove icon for notifications
unreadIndicator for unread notifications
unsnoozeIcon for unsnoozed notifications

You can inspect the Inbox component using your browser’s developer tools to discover icon keys. Icon elements have class names that start with nv- and include a 🖼️ emoji for easier identification. The part following nv- is the icon key. For example, an element with the class nv-cogs has the icon key cogs.

On this page

Edit this page on GitHub