AI Agent 使用指南

先读 COMPONENTS_GUIDE.md,再查 catalog.json 找组件,然后读 *.snippet.html 获取代码,读 *.meta.md 了解用法。

21
组件
10
分类
v4
Tailwind
Dark/Light
主题
AI States
01 Loading State Pixel-grid loader with shimmer and elapsed time.
loadinganimationshimmerpixelai
02 Thinking Expandable traces — steps, reasoning, search, coding.
thinkingexpandabletracesai
03 Streaming Text Streamed answer with inline sources, actions, and follow-ups.
streamingsourcesfollow-upschat
Interaction
04 Approval Card Human-in-the-loop questions the agent asks before acting.
approvalhitlformdecision
05 Tool Chips Code edits and tool calls as compact chips.
chipstool-callsagentcode
20 Selection Actions Contextual action bar for selected items.
selectionbulktoolbarfloating
Task Management
06 Task Rows Live agent task status — running, failed, completed.
tasksstatusrunningagent
Input
07 Chat Full chat conversation interface for AI.
chatcomposerconversation
08 Prompt Bar Floating prompt input bar for AI interfaces.
promptinputai-input
Cards
09 Recommendation Card Cards suggesting next actions or content.
recommendationsuggestioncta
10 Context Cards Cards showing contextual information and attachments.
contextpreviewattachment
17 Insight Cards Dashboard metric cards with sparkline charts and trends.
insightmetricdashboardkpi
19 Fine-tune Card Card for model fine-tuning configuration and training.
fine-tunemodelmlai
Data Display
11 Diff Table Side-by-side code/content diff view.
diffcodecomparison
12 Records Table Full-featured data table with sorting, selection, and calculations.
tablerecordssortableairtable-like
13 Filter Table Table with filter bar, status badges, and search.
tablefilterstatus
Navigation & Layout
16 Flowchart Interactive flowchart with nodes, edges, zoom, and pan.
flowchartdiagramworkflow
18 Code Block Syntax-highlighted code display with copy button.
codesyntaxhighlight
21 Agent Screen Full agent desktop/screen layout with sidebar and activity feed.
agentlayoutfull-page