Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@magicbell/magicbell-react

magicbell43.8kSEE LICENSE IN LICENSE11.5.0TypeScript support: included

React components for building a notification inbox for your app

bell, magicbell, notifications, notification center, notification inbox, immer, zustand, immutable, typescript, react

readme

@magicbell/magicbell-react

This package is deprecated. Please use @magicbell/react instead.

- import MagicBell, { FloatingNotificationInbox } from '@magicbell/magicbell-react';
+ import Provider from "@magicbell/react/context-provider";
+ import FloatingInbox from "@magicbell/react/floating-inbox";

function App(props: any) {
  return (
-   <MagicBell apiKey={MAGICBELL_API_KEY} userEmail="john@example.com">
-     {(props) => <FloatingNotificationInbox height={300} {...props} />}
-   </MagicBell>,
+   <Provider token="abc123">
+     <FloatingInbox height={500} />
+   </Provider>
  );
}