AI elements
Build assistant conversations, show agent activity, and let users review proposed actions. Each pattern has a live example and copyable HTML, React, and Vue.
- Chat1 exampleCombine messages, a followable stream, and a prompt composer.
- Message1 examplePresent one user turn and an assistant reply with grouped actions.
- Message Scroller1 exampleKeep the newest response visible until the reader scrolls back.
- Prompt Input1 exampleCompose a prompt with staged attachments and keyboard submission.
- Attachment1 exampleStage local files as removable attachment chips.
- Suggestion1 exampleOffer useful starting prompts that can be edited before sending.
- Questionnaire1 exampleCollect structured answers across a short series of questions.
- Model Selector1 exampleChoose a model profile and reasoning effort with labeled native selectors.
- Context1 exampleShow how much of the context window is occupied and what uses it.
- Trace1 exampleGroup running and completed steps in a shared, expandable activity feed.
- Chain of Thought1 exampleReplay an agent run and inspect the steps behind its answer.
- Reasoning1 exampleReplay a user-visible reasoning summary and the answer it precedes.
- Plan1 exampleShow an ordered proposal and track progress as each step finishes.
- Queue1 exampleTrack pending and completed work in an interactive checklist.
- Task1 exampleShow a task as it progresses from work in progress to a result.
- Subagent1 exampleShow delegated work, its progress, and the result returned to the assistant.
- Checkpoint1 exampleMark a recoverable conversation point and confirm before restoring it.
- Confirmation1 exampleAsk for approval before proceeding with a proposed agent action.
- Inline Citation1 exampleConnect a statement to a source preview without interrupting reading.
- Sources1 exampleShow references arriving during a search, then attach them to the completed answer.
- File Tree1 exampleReview agent file changes in an expandable project tree.
- Tool1 exampleFollow a tool call from its input through a running state to its result.
- Terminal1 exampleReplay a command transcript and append output as it arrives.
- Stack Trace1 exampleReveal a failed operation and let users inspect or copy its stack frames.
- Test Results1 exampleSummarize a test run and isolate failures with an animated filter.