@magicbell/magicbell-react
Version:
React components for building a notification inbox for your app
34 lines (25 loc) • 1.55 kB
Markdown
[](https://codecov.io/gh/magicbell/magicbell-react)
[](http://www.typescriptlang.org/)
[](https://github.com/prettier/prettier)
[](https://bundlephobia.com/result?p=@magicbell/magicbell-react)
[](https://bundlephobia.com/result?p=@magicbell/magicbell-react)
[](https://www.npmjs.com/package/@magicbell/magicbell-react)
# MagicBell-React
This package contains React components to build a notification inbox for your site powered by [MagicBell](https://magicbell.com).
## Quick Start
```shell
npm i @magicbell/magicbell-react
```
```jsx
import React from 'react';
import ReactDOM from 'react-dom';
import MagicBell, { FloatingNotificationInbox } from '@magicbell/magicbell-react';
ReactDOM.render(
<MagicBell apiKey={MAGICBELL_API_KEY} userEmail="john@example.com">
{(props) => <FloatingNotificationInbox height={300} {...props} />}
</MagicBell>,
document.body,
);
```
## Documentation
Please see the [MagicBell documentation](https://magicbell.com/docs/libraries/react) for more information about this SDK.