Conversation core

Code block

Use when the agent writes code or config the user will read, check and copy.

Agent-written code streaming in line by line with syntax tint.

Part of Conversation core. The first thing you build: a place to ask and a place to read the answer. Every AI product ships these surfaces, so users compare yours with the best they have used. The work here is in the details: what the composer does mid-answer, how a reply arrives, what you can do with it afterwards.

Do

Don't

States

Usage

import { CodeBlockPattern } from "./halaska-kit";

<CodeBlockPattern />

Built from

Agent Glyph, Thinking Indicator, Typography

Related patterns

Diff view, Artifact

Halaska UI · Components · Patterns · Screens · Install