Skip to content
2k
On This Page

AI Elements

Patterns for agentic interfaces, built from Solid UI components.

AI Elements are patterns for building agentic interfaces. Each one is a composition of Solid UI components that you copy into your project. There is no package to install. The code is yours.

A Chat is a list of Message turns inside a Message Scroller. The steps an agent takes inside a turn, like Reasoning, Tool and Plan, are built on Trace, so every step has the same shape.

Building a chatbot? Start from the streaming chat example.

Coming from elements.ai-sdk.dev? See Migrating from AI SDK Elements.

Patterns

Migrating from AI SDK Elements

If you used AI SDK Elements from elements.ai-sdk.dev, here is what changes.

Existing projects

You do not need to migrate. When you installed components from elements.ai-sdk.dev, the code was copied into your project. It is yours, and it keeps working as is.

What replaces each element

AI SDK ElementsSolid UI
agent.tsxSubagent
attachments.tsxAttachment
chain-of-thought.tsxChain of Thought
checkpoint.tsxCheckpoint
code-block.tsxCode Block
commit.tsxTrace
confirmation.tsxConfirmation
context.tsxContext
conversation.tsxChat
file-tree.tsxFile Tree
inline-citation.tsxInline Citation
message.tsxMessage
model-selector.tsxModel Selector
plan.tsxPlan
prompt-input.tsxPrompt Input
question.tsxQuestionnaire
queue.tsxQueue
reasoning.tsxReasoning
sources.tsxSources
stack-trace.tsxStack Trace
suggestion.tsxSuggestion
task.tsxTask
terminal.tsxTerminal
test-results.tsxTest Results
tool.tsxTool