Streaming text core

Build-lean streaming text renderer whose Markdown mode highlights fenced code only from a compile-time supplied grammar map.

Chat composer, messages, streaming text, and transcript threads.

lr-streaming-text-core

import '@aceshooting/lyra-ui/components/lr-streaming-text-core.js';

Optional dependency: marked, dompurify

Read guide (English)

Related components

  • Suggestion chips — Scrollable row of starter or follow-up prompt chips that hand the chosen text to the host.
  • Thread list — Grouped, searchable conversation sidebar with pin, archive, delete, and rename row actions.
  • Transcript feed — Live captions feed for an in-progress voice session with interim-to-final upgrades and stick-to-bottom scroll.
  • Typing indicator — Presentational presence cue that shows the assistant is composing a response
  • Usage badge — Compact tokens/cost/latency strip for one message or run, with a hover tooltip breakdown.
  • Voice picker — TTS voice selector over a supplied catalog with inline audio preview and stale-value handling.