Skip to main content
The web UI library provides a comprehensive set of components for building AI chat applications with web technologies.

Chat Components

ChatPanel

Complete chat interface with artifacts:

AgentInterface

Chat interface for custom layouts:

ArtifactsPanel

Displays interactive artifacts:
Supports: HTML, SVG, Markdown, text, JSON, images, PDF, DOCX, XLSX.

Input Components

MessageInput

Rich text input with attachments:

AttachmentButton

File attachment selector:

Selector Components

ModelSelector

Model selection dialog:

ThinkingLevelSelector

Thinking level selector:

Dialog Components

SettingsDialog

Settings with multiple tabs:

SessionListDialog

Session browser:

ApiKeyPromptDialog

API key prompt:

Message Renderers

Built-in Renderers

The library includes renderers for:
  • User messages with attachments
  • Assistant messages with streaming
  • Tool calls and results
  • Thinking blocks
  • Artifacts
  • Images and documents

Custom Renderers

Register custom message renderers:

Tool Renderers

Register custom tool result renderers:

Attachments

Loading Attachments

Attachment Structure

Supported formats: PDF, DOCX, XLSX, PPTX, images, text files.

CORS Proxy

For browser environments:

Internationalization

Add translations:

Next Steps

Web UI Overview

Learn web UI concepts

API Reference

Complete API documentation

Example App

View complete example