SearchCtrlK

  • ↑↓navigate
  • ↵open
  • escclose

Can’t find it? Contact us

STREAM_CURRENT_ATTRIBUTE

Attribute revealStream keeps on the block it showed last, while it runs.

tsx
import { STREAM_CURRENT_ATTRIBUTE } from "@sdxc/ui/chat";

Signature

typescript
const STREAM_CURRENT_ATTRIBUTE = "data-stream-current"

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

Interface

StreamRevealOptions

Options for revealStream.

MemberTypeRequiredDescription
intervalnumberNoMilliseconds between ticks. @default 32
onEnd(end: StreamRevealEnd) => voidNoCalled once, when the whole reply has shown or StreamReveal.stop ran.
signalAbortSignalNoStops the reveal where it is when aborted, as StreamReveal.stop does.
Interface

StreamReveal

A running reveal.

MemberTypeRequiredDescription
stopvoidYesFreezes the reply at what has shown; the rest of it stays out of the page.
Type

StreamRevealEnd

How a reveal finished.

typescript
type StreamRevealEnd = "done" | "stopped"
@sdxc/ui

Can’t find it? Contact us