Code block

Fenced code display with optional lazy syntax highlighting and a copy button.

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

lr-code-block

import '@aceshooting/lyra-ui/components/lr-code-block.js';

Read guide (English)

Related components

  • Code block core — Build-lean code display that highlights only from a compile-time supplied grammar map.
  • Conversation item — Selectable chat-history row showing a session's title, preview, and timestamp.
  • Generation metrics — Shows elapsed time, tokens, and throughput while an AI response streams.
  • Handoff divider — Labeled separator marking control transfer between agents in a transcript.
  • Markdown — Sanitized Markdown-to-HTML rendering with GFM tables, code, and links
  • Markdown core — Build-lean Markdown rendering that highlights fenced code only from a compile-time supplied grammar map.