# STREAM_PAUSE_ATTRIBUTE

> Attribute a block carries to hold the replay that many milliseconds once it shows, for a step that should read as taking time.

```ts
import { STREAM_PAUSE_ATTRIBUTE } from "@sdxc/ui/chat";
```

Attribute a block carries to hold the replay that many milliseconds once it shows, for a
step that should read as taking time.

## Signature

```ts
const STREAM_PAUSE_ATTRIBUTE = "data-stream-pause"
```

## Used with it

The events, constants and types its module publishes, each imported from `@sdxc/ui/chat` too.

### StreamRevealOptions

Options for revealStream.

#### Members

| Member | Type | Description |
| --- | --- | --- |
| `interval?` | `number` | Milliseconds between ticks. @default 32 |
| `onEnd?` | `(end: StreamRevealEnd) => void` | Called once, when the whole reply has shown or StreamReveal.stop ran. |
| `signal?` | `AbortSignal` | Stops the reveal where it is when aborted, as StreamReveal.stop does. |

### StreamReveal

A running reveal.

#### Members

| Member | Type | Description |
| --- | --- | --- |
| `stop` | `void` | Freezes the reply at what has shown; the rest of it stays out of the page. |

### StreamRevealEnd

How a reveal finished.

#### Signature

```ts
type StreamRevealEnd = "done" | "stopped"
```

One of `"done"`, `"stopped"`.
