# belo-react-sdk

> React components to create chat conversations or livestream style chat

Latest version **1.1.1** (published 2024-04-19) · SEE LICENSE IN LICENSE license · 0 weekly downloads

## Install

```sh
npm install belo-react-sdk
pnpm add belo-react-sdk
yarn add belo-react-sdk
bun add belo-react-sdk
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads; large bundle.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.1 |
| Published | 2024-04-19 |
| First published | 2024-03-29 |
| Weekly downloads | 0 |
| License | SEE LICENSE IN LICENSE |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 32 |
| Unpacked size | 23.2 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Belochat |
| Maintainers | hoangbim |
| Keywords | chat, messaging, conversation, react, stream |

## Links

- npm: https://www.npmjs.com/package/belo-react-sdk
- Homepage: https://belochat.com
- npm.io page: https://npm.io/package/belo-react-sdk

## Dependencies (32)

- [clsx](https://npm.io/package/clsx.md) ^2.0.0
- [dayjs](https://npm.io/package/dayjs.md) ^1.10.4
- [tslib](https://npm.io/package/tslib.md) ^2.6.2
- [nanoid](https://npm.io/package/nanoid.md) ^3.3.4
- [i18next](https://npm.io/package/i18next.md) ^21.6.14
- [react-is](https://npm.io/package/react-is.md) ^18.1.0
- [linkifyjs](https://npm.io/package/linkifyjs.md) ^4.1.0
- [prop-types](https://npm.io/package/prop-types.md) ^15.7.2
- [remark-gfm](https://npm.io/package/remark-gfm.md) ^4.0.0
- [emoji-regex](https://npm.io/package/emoji-regex.md) ^9.2.0
- [pretty-bytes](https://npm.io/package/pretty-bytes.md) ^5.4.1
- [react-player](https://npm.io/package/react-player.md) 2.10.1
- [react-popper](https://npm.io/package/react-popper.md) ^2.3.0
- [isomorphic-ws](https://npm.io/package/isomorphic-ws.md) ^4.0.1
- [lodash.uniqby](https://npm.io/package/lodash.uniqby.md) ^4.7.0
- [unist-builder](https://npm.io/package/unist-builder.md) ^3.0.0
- [@babel/runtime](https://npm.io/package/@babel/runtime.md) ^7.23.6
- [@popperjs/core](https://npm.io/package/@popperjs/core.md) ^2.11.5
- [react-dropzone](https://npm.io/package/react-dropzone.md) ^14.2.3
- [react-markdown](https://npm.io/package/react-markdown.md) 9.0.1
- [react-virtuoso](https://npm.io/package/react-virtuoso.md) ^2.16.5
- [textarea-caret](https://npm.io/package/textarea-caret.md) ^3.1.0
- [lodash.debounce](https://npm.io/package/lodash.debounce.md) ^4.0.8
- [lodash.throttle](https://npm.io/package/lodash.throttle.md) ^4.1.1
- [unist-util-visit](https://npm.io/package/unist-util-visit.md) ^5.0.0
- [@react-aria/focus](https://npm.io/package/@react-aria/focus.md) ^3.16.1
- [react-fast-compare](https://npm.io/package/react-fast-compare.md) ^3.2.2
- [lodash.defaultsdeep](https://npm.io/package/lodash.defaultsdeep.md) ^4.6.1
- [react-image-gallery](https://npm.io/package/react-image-gallery.md) 1.2.12
- [@braintree/sanitize-url](https://npm.io/package/@braintree/sanitize-url.md) ^6.0.4
- [react-textarea-autosize](https://npm.io/package/react-textarea-autosize.md) ^8.3.0
- [hast-util-find-and-replace](https://npm.io/package/hast-util-find-and-replace.md) ^5.0.1

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.1.1 (latest) — 2024-04-19
- 1.0.1 — 2024-03-29

## README

---
runme:
  id: 01HT1FJ3W14M9QJN0KFMZ0JS1F
  version: v3
---

<p align="center">
  <img src="https://i.imgur.com/SRkDlFX.png" alt="react native chat" width="60%" />
</p>

[![NPM](https://img.shields.io/npm/v/stream-chat-react.svg)](https://www.npmjs.com/package/stream-chat-react)
[![build](https://github.com/GetStream/stream-chat-react/actions/workflows/ci.yml/badge.svg)](https://github.com/GetStream/stream-chat-react/actions)
[![Component Reference](https://img.shields.io/badge/docs-component%20reference-blue.svg)](https://getstream.io/chat/docs/sdk/react/)
[![codecov](https://codecov.io/gh/GetStream/stream-chat-react/branch/master/graph/badge.svg)](https://codecov.io/gh/GetStream/stream-chat-react)

<img align="right" src="https://getstream.imgix.net/images/chat/chattutorialart@3x.png?auto=format,enhance" width="50%" />

**Quick Links**

With our component library, you can build a variety of chat use cases, including:

- Livestream like Twitch or YouTube
- In-game chat like Overwatch or Fortnite
- Team-style chat like Slack
- Messaging-style chat like WhatsApp or Facebook's Messenger
- Customer support chat like Drift or Intercom

## Installation

### Install with NPM

`npm install react react-dom belo-js-sdk belo-react-sdk`

### Install with Yarn

`yarn add react react-dom belo-js-sdk belo-react-sdk`

### Install via CDN

```sh {"id":"01HT1FJ3W14M9QJN0KFC4FXJ2Y"}
<script src="https://cdn.jsdelivr.net/npm/react@16.13.1/umd/react.production.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/react-dom@16/umd/react-dom.production.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/belo-js-sdk"></script>
<script src="https://cdn.jsdelivr.net/npm/belo-react-sdk"></script>
```

## Component Reusability

For components that implement significant logic, it's helpful to split the component into two parts: a top-level component which handles functionality and a lower level component which renders the UI. This way you can swap UI without altering the logic that gives the component its functionality. We use this provider/consumer pattern frequently in the library, and the below example shows how to swap out the `Message` UI component with `MessageTeam`, without affecting any logic in the app.

```jsx {"id":"01HT1FJ3W14M9QJN0KFEJ5SF4C"}
<Channel Message={MessageTeam}>
  <Window>
    <ChannelHeader />
    <MessageList />
    <MessageInput />
  </Window>
  <Thread />
</Channel>
```

### Customizing Styles

The preferred method for overriding the pre-defined styles in the library is to two step process. First, import our bundled CSS into the file where you instantiate your chat application. Second, locate any Stream styles you want to override using either the browser inspector or by viewing the library code. You can then add selectors to your local CSS file to override our defaults. For example:

```js {"id":"01HT1FJ3W14M9QJN0KFJ012F34"}
import 'belo-react-sdk/dist/css/v2/index.css';
import './App.css';
```

---
_Source: https://npm.io/package/belo-react-sdk · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
