> ## Documentation Index
> Fetch the complete documentation index at: https://docs.langchain.com/llms.txt
> Use this file to discover all available pages before exploring further.

# UI Playground

> Explore production-ready UI patterns for LangChain agent apps across React, Vue, Svelte, and Angular.

# LangChain UI Playground

Explore production-ready UI patterns for LangChain agent apps — across [React](https://react.dev/), [Vue](https://vuejs.org/), [Svelte](https://svelte.dev/), and [Angular](https://angular.dev/). Pick a framework, browse demos, and open in your editor.

## Framework Previews

Every pattern is implemented across all four frontend frameworks. Choose a tab to browse demos.

> [tab] React
>
> > [card] [Tool Calling](https://ui-patterns.langchain.com/react/#/tool-calling)
> >
> > Render agent tool calls as rich cards — calculator, weather, search, email and more.
>
> > [card] [Human in the Loop](https://ui-patterns.langchain.com/react/#/human-in-the-loop)
> >
> > Agent pauses and surfaces an approval card before taking a sensitive action.
>
> > [card] [Generative UI](https://ui-patterns.langchain.com/react/#/generative-ui)
> >
> > Server-driven dynamic UI — the agent emits structured component payloads rendered live.
>
> > [card] [Reasoning Tokens](https://ui-patterns.langchain.com/react/#/reasoning-tokens)
> >
> > Collapsible chain-of-thought blocks that stream thinking tokens before the final answer.
>
> > [card] [Structured Output](https://ui-patterns.langchain.com/react/#/structured-output-latex)
> >
> > Agent returns typed structured data rendered with LaTeX math support.
>
> > [card] [Time Travel](https://ui-patterns.langchain.com/react/#/time-travel)
> >
> > Branch conversation history and replay from any checkpoint using LangChain state.
>
> > [card] [Join / Rejoin](https://ui-patterns.langchain.com/react/#/join-rejoin)
> >
> > Visualize fan-out/fan-in parallel subgraph execution with merge indicators.
>
> > [card] [Async Iterator Tools](https://ui-patterns.langchain.com/react/#/async-iterator-tools)
> >
> > Stream incremental tool progress using async iterators with live progress cards.
>
> > [card] [Deep agent — Subagent Cards](https://ui-patterns.langchain.com/react/#/deep-agent-subagent-cards)
> >
> > Hierarchical activity cards for Deep Research-style multi-subagent orchestration.
>
> > [card] [Deep agent — Todo List](https://ui-patterns.langchain.com/react/#/deep-agent-todo-list)
> >
> > Agent builds and checks off a live todo list while executing a long-running task.
>
> > [card] [Deep agent — Sandbox](https://ui-patterns.langchain.com/react/#/deep-agent-ide)
> >
> > IDE-like UI with file browser, code viewer, and diff panel backed by a sandbox environment.
>
> > [card] [Graph Execution Cards](https://ui-patterns.langchain.com/react/#/graph-execution-cards)
> >
> > Timeline cards that visualize each LangGraph node as it executes in real time.
>
> > [card] [Markdown Messages](https://ui-patterns.langchain.com/react/#/markdown-messages)
> >
> > Rich Markdown rendering with syntax-highlighted code blocks inside chat bubbles.
>
> > [card] [Branching Chat](https://ui-patterns.langchain.com/react/#/branching-chat)
> >
> > Full chat interface with first-class branch navigation and history traversal.
>
> > [card] [Message Queues](https://ui-patterns.langchain.com/react/#/message-queues)
> >
> > Visualize message queue state and throughput for multi-step agent pipelines.
>
> > [card] [Subagent Streaming](https://ui-patterns.langchain.com/react/#/subagent-streaming)
> >
> > Stream output from multiple parallel subagents simultaneously with isolated windows.

> [tab] Vue
>
> > [card] [Tool Calling](https://ui-patterns.langchain.com/vue/#/tool-calling)
> >
> > Render agent tool calls as rich cards — calculator, weather, search, email and more.
>
> > [card] [Human in the Loop](https://ui-patterns.langchain.com/vue/#/human-in-the-loop)
> >
> > Agent pauses and surfaces an approval card before taking a sensitive action.
>
> > [card] [Generative UI](https://ui-patterns.langchain.com/vue/#/generative-ui)
> >
> > Server-driven dynamic UI — the agent emits structured component payloads rendered live.
>
> > [card] [Reasoning Tokens](https://ui-patterns.langchain.com/vue/#/reasoning-tokens)
> >
> > Collapsible chain-of-thought blocks that stream thinking tokens before the final answer.
>
> > [card] [Structured Output](https://ui-patterns.langchain.com/vue/#/structured-output-latex)
> >
> > Agent returns typed structured data rendered with LaTeX math support.
>
> > [card] [Time Travel](https://ui-patterns.langchain.com/vue/#/time-travel)
> >
> > Branch conversation history and replay from any checkpoint using LangChain state.
>
> > [card] [Join / Rejoin](https://ui-patterns.langchain.com/vue/#/join-rejoin)
> >
> > Visualize fan-out/fan-in parallel subgraph execution with merge indicators.
>
> > [card] [Async Iterator Tools](https://ui-patterns.langchain.com/vue/#/async-iterator-tools)
> >
> > Stream incremental tool progress using async iterators with live progress cards.
>
> > [card] [Deep agent — Subagent Cards](https://ui-patterns.langchain.com/vue/#/deep-agent-subagent-cards)
> >
> > Hierarchical activity cards for Deep Research-style multi-subagent orchestration.
>
> > [card] [Deep agent — Todo List](https://ui-patterns.langchain.com/vue/#/deep-agent-todo-list)
> >
> > Agent builds and checks off a live todo list while executing a long-running task.
>
> > [card] [Deep agent — Sandbox](https://ui-patterns.langchain.com/vue/#/deep-agent-ide)
> >
> > IDE-like UI with file browser, code viewer, and diff panel backed by a sandbox environment.
>
> > [card] [Graph Execution Cards](https://ui-patterns.langchain.com/vue/#/graph-execution-cards)
> >
> > Timeline cards that visualize each LangGraph node as it executes in real time.
>
> > [card] [Markdown Messages](https://ui-patterns.langchain.com/vue/#/markdown-messages)
> >
> > Rich Markdown rendering with syntax-highlighted code blocks inside chat bubbles.
>
> > [card] [Branching Chat](https://ui-patterns.langchain.com/vue/#/branching-chat)
> >
> > Full chat interface with first-class branch navigation and history traversal.
>
> > [card] [Message Queues](https://ui-patterns.langchain.com/vue/#/message-queues)
> >
> > Visualize message queue state and throughput for multi-step agent pipelines.
>
> > [card] [Subagent Streaming](https://ui-patterns.langchain.com/vue/#/subagent-streaming)
> >
> > Stream output from multiple parallel subagents simultaneously with isolated windows.

> [tab] Svelte
>
> > [card] [Tool Calling](https://ui-patterns.langchain.com/svelte/#/tool-calling)
> >
> > Render agent tool calls as rich cards — calculator, weather, search, email and more.
>
> > [card] [Human in the Loop](https://ui-patterns.langchain.com/svelte/#/human-in-the-loop)
> >
> > Agent pauses and surfaces an approval card before taking a sensitive action.
>
> > [card] [Generative UI](https://ui-patterns.langchain.com/svelte/#/generative-ui)
> >
> > Server-driven dynamic UI — the agent emits structured component payloads rendered live.
>
> > [card] [Reasoning Tokens](https://ui-patterns.langchain.com/svelte/#/reasoning-tokens)
> >
> > Collapsible chain-of-thought blocks that stream thinking tokens before the final answer.
>
> > [card] [Structured Output](https://ui-patterns.langchain.com/svelte/#/structured-output-latex)
> >
> > Agent returns typed structured data rendered with LaTeX math support.
>
> > [card] [Time Travel](https://ui-patterns.langchain.com/svelte/#/time-travel)
> >
> > Branch conversation history and replay from any checkpoint using LangChain state.
>
> > [card] [Join / Rejoin](https://ui-patterns.langchain.com/svelte/#/join-rejoin)
> >
> > Visualize fan-out/fan-in parallel subgraph execution with merge indicators.
>
> > [card] [Async Iterator Tools](https://ui-patterns.langchain.com/svelte/#/async-iterator-tools)
> >
> > Stream incremental tool progress using async iterators with live progress cards.
>
> > [card] [Deep agent — Subagent Cards](https://ui-patterns.langchain.com/svelte/#/deep-agent-subagent-cards)
> >
> > Hierarchical activity cards for Deep Research-style multi-subagent orchestration.
>
> > [card] [Deep agent — Todo List](https://ui-patterns.langchain.com/svelte/#/deep-agent-todo-list)
> >
> > Agent builds and checks off a live todo list while executing a long-running task.
>
> > [card] [Deep agent — Sandbox](https://ui-patterns.langchain.com/svelte/#/deep-agent-ide)
> >
> > IDE-like UI with file browser, code viewer, and diff panel backed by a sandbox environment.
>
> > [card] [Graph Execution Cards](https://ui-patterns.langchain.com/svelte/#/graph-execution-cards)
> >
> > Timeline cards that visualize each LangGraph node as it executes in real time.
>
> > [card] [Markdown Messages](https://ui-patterns.langchain.com/svelte/#/markdown-messages)
> >
> > Rich Markdown rendering with syntax-highlighted code blocks inside chat bubbles.
>
> > [card] [Branching Chat](https://ui-patterns.langchain.com/svelte/#/branching-chat)
> >
> > Full chat interface with first-class branch navigation and history traversal.
>
> > [card] [Message Queues](https://ui-patterns.langchain.com/svelte/#/message-queues)
> >
> > Visualize message queue state and throughput for multi-step agent pipelines.
>
> > [card] [Subagent Streaming](https://ui-patterns.langchain.com/svelte/#/subagent-streaming)
> >
> > Stream output from multiple parallel subagents simultaneously with isolated windows.

> [tab] Angular
>
> > [card] [Tool Calling](https://ui-patterns.langchain.com/angular/#/tool-calling)
> >
> > Render agent tool calls as rich cards — calculator, weather, search, email and more.
>
> > [card] [Human in the Loop](https://ui-patterns.langchain.com/angular/#/human-in-the-loop)
> >
> > Agent pauses and surfaces an approval card before taking a sensitive action.
>
> > [card] [Generative UI](https://ui-patterns.langchain.com/angular/#/generative-ui)
> >
> > Server-driven dynamic UI — the agent emits structured component payloads rendered live.
>
> > [card] [Reasoning Tokens](https://ui-patterns.langchain.com/angular/#/reasoning-tokens)
> >
> > Collapsible chain-of-thought blocks that stream thinking tokens before the final answer.
>
> > [card] [Structured Output](https://ui-patterns.langchain.com/angular/#/structured-output-latex)
> >
> > Agent returns typed structured data rendered with LaTeX math support.
>
> > [card] [Time Travel](https://ui-patterns.langchain.com/angular/#/time-travel)
> >
> > Branch conversation history and replay from any checkpoint using LangChain state.
>
> > [card] [Join / Rejoin](https://ui-patterns.langchain.com/angular/#/join-rejoin)
> >
> > Visualize fan-out/fan-in parallel subgraph execution with merge indicators.
>
> > [card] [Async Iterator Tools](https://ui-patterns.langchain.com/angular/#/async-iterator-tools)
> >
> > Stream incremental tool progress using async iterators with live progress cards.
>
> > [card] [Deep agent — Subagent Cards](https://ui-patterns.langchain.com/angular/#/deep-agent-subagent-cards)
> >
> > Hierarchical activity cards for Deep Research-style multi-subagent orchestration.
>
> > [card] [Deep agent — Todo List](https://ui-patterns.langchain.com/angular/#/deep-agent-todo-list)
> >
> > Agent builds and checks off a live todo list while executing a long-running task.
>
> > [card] [Deep agent — Sandbox](https://ui-patterns.langchain.com/angular/#/deep-agent-ide)
> >
> > IDE-like UI with file browser, code viewer, and diff panel backed by a sandbox environment.
>
> > [card] [Graph Execution Cards](https://ui-patterns.langchain.com/angular/#/graph-execution-cards)
> >
> > Timeline cards that visualize each LangGraph node as it executes in real time.
>
> > [card] [Markdown Messages](https://ui-patterns.langchain.com/angular/#/markdown-messages)
> >
> > Rich Markdown rendering with syntax-highlighted code blocks inside chat bubbles.
>
> > [card] [Branching Chat](https://ui-patterns.langchain.com/angular/#/branching-chat)
> >
> > Full chat interface with first-class branch navigation and history traversal.
>
> > [card] [Message Queues](https://ui-patterns.langchain.com/angular/#/message-queues)
> >
> > Visualize message queue state and throughput for multi-step agent pipelines.
>
> > [card] [Subagent Streaming](https://ui-patterns.langchain.com/angular/#/subagent-streaming)
> >
> > Stream output from multiple parallel subagents simultaneously with isolated windows.

## UI Framework Integrations

Drop-in UI component libraries built to work with `@langchain/react` out of the box.

> [card] [ai-elements](https://ui-patterns.langchain.com/ai-elements/)
>
> Headless, composable React components for building AI chat UIs. Uses [`useStream`](https://reference.langchain.com/javascript/langchain-react/index/useStream) under the hood with full shadcn/ui compatibility.
>
> * Scroll-sticky conversation container
> * Streaming code blocks with syntax highlighting
> * Collapsible reasoning / thinking blocks
> * Tool call display with args & results
> * Shimmer loading states & suggestion chips

> [card] [assistant-ui](https://ui-patterns.langchain.com/assistant-ui/)
>
> A Claude-style assistant UI built with `@assistant-ui/react` primitives wired to LangChain via `useExternalStoreRuntime`.
>
> * Claude-style warm parchment theme
> * Chain-of-thought collapsible reasoning
> * Image attachment support
> * Copy / thumbs-up / thumbs-down action bar
> * Full dark mode support

> [card] [OpenUI](https://ui-patterns.langchain.com/openui/)
>
> Generative UI chat where a LangChain agent emits arbitrary React components as part of the message stream — rendered live in the browser.
>
> * Agent-driven dynamic component rendering
> * Streaming message composition
> * Custom component registry
> * Live preview of generated interfaces

***

[Connect these docs](https://docs.langchain.com/use-these-docs.md) to your agent of choice via MCP for real-time answers.

[Edit this page on GitHub](https://github.com/langchain-ai/docs/edit/main/src/playground.mdx) or [file an issue](https://github.com/langchain-ai/docs/issues/new/choose).
