LiveKit docs › Hooks › useTextStream

---

# useTextStream

> ℹ️ **Note**
> 
> This feature is under active development and may change based on developer feedback and real-world usage.

## Import

```typescript
import { useTextStream } from "@livekit/components-react";

```

## Usage

```tsx
const { textStreams } = useTextStream("my-topic");
return <div>{textStreams.map((textStream) => textStream.text)}</div>;

```

## Properties

- **`topic`** _(string)_: the topic to listen to

## Returns

an array of TextStreamData that holds the text, participantInfo, and streamInfo

```typescript
{
    textStreams: TextStreamData[];
}

```

---

This document was rendered at 2026-06-07T11:32:18.439Z.
For the latest version of this document, see [https://docs.livekit.io/reference/components/react/hook/usetextstream.md](https://docs.livekit.io/reference/components/react/hook/usetextstream.md).

To explore all LiveKit documentation, see [llms.txt](https://docs.livekit.io/llms.txt).