This package contains a notification inbox for your site powered by MagicBell.
Note
Don't use this package when you're using React. Use @magicbell/magicbell-react or @magicbell/react-headless instead.
npm i @magicbell/embeddable
<div id="notifications-inbox" />
<script type="module">
import { renderWidget } from '@magicbell/embeddable';
const targetElement = document.getElementById('notifications-inbox');
const options = {
apiKey: MAGICBELL_API_KEY,
userEmail: CURRENT_USER_EMAIL,
height: 500,
};
renderWidget(targetElement, options);
</script>
Please see the MagicBell documentation for more information about this SDK.