Created
August 12, 2025 02:57
-
-
Save ragingwind/4399d7f96974053988848e72fb8caefa to your computer and use it in GitHub Desktop.
@aisdk element cheat map for chat layout
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ChatPannel> | |
<ChatHeader/> | |
<Conversation> | |
<ConversationContent> | |
<Message from={'👱♂️'}> | |
<MessageAvatar /> | |
<MessageContent>Hi</MessageContent> | |
</Message> | |
<Sources> | |
<SourcesTrigger count={1} /> | |
<SourcesContent> | |
<Source href="https://ai-sdk.dev" title="AI SDK" /> | |
</SourcesContent> | |
</Sources> | |
<Message from={'🤖'}> | |
<MessageContent> | |
<Reasoning> | |
<ReasoningTrigger/> | |
<ReasoningContent>Thinking..</ReasoningContent> | |
</Reasoning> | |
</MessageContent> | |
<MessageContent> | |
<Task> | |
<TaskTrigger title="Found project files" /> | |
<TaskContent> | |
<TaskItem> | |
Read <TaskItemFile>index.md</TaskItemFile> | |
</TaskItem> | |
</TaskContent> | |
</Task> | |
</MessageContent> | |
<MessageContent> | |
<Tool> | |
<ToolHeader type="tool-call" /> | |
<ToolContent> | |
<ToolInput/> | |
<ToolOutput/> | |
</ToolContent> | |
</Tool> | |
</MessageContent> | |
<MessageContent> | |
<Image base64="valid base64 string" | |
mediaType: 'image/jpeg', | |
uint8Array: new Uint8Array([]), | |
alt="Example generated image" | |
/> | |
</MessageContent> | |
<MessageContent> | |
<CodeBlock data={"console.log('hello world')"} language="jsx"> | |
<CodeBlockCopyButton/> | |
</CodeBlock> | |
</MessageContent> | |
<MessageContent> | |
<Response> | |
**Hi there.** | |
<InlineCitation /> | |
</Response> | |
<Actions className="mt-2"> | |
<Action label="Like"> | |
<ThumbsUpIcon className="size-4" /> | |
</Action> | |
</Actions> | |
</MessageContent> | |
<Message> | |
</ConversationContent> | |
<ConversationScrollButton /> | |
</Conversation> | |
<Suggestions> | |
<Suggestion suggestion="What are the latest trends in AI?" /> | |
</Suggestions> | |
<Prompt> | |
<PromptInput onSubmit={() => {}}> | |
<PromptInputTextarea onChange={(e) => {}} value={''} /> | |
<PromptInputToolbar> | |
<PromptInputSubmit disabled={false} status={'ready'}/> | |
</PromptInputToolbar> | |
</PromptInput> | |
</Prompt> | |
</ChatPannel> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment