Tweaker
Adjust the live block preview.
Installation
Install automatically via CLI or manually integrate dependencies and code.
The install command is available with paid source access.
Usage
Import the component and configure visual variants, sizes, and operational states.
import { AiChatBlock } from '@/components/blocks/ai-chat' <AiChatBlock title="Agent Chat" userName="CJ" userAvatar={<img src="/assets/images/cj1.jpg" alt="" className="size-full object-cover" />} placeholder="Ask the agent…" onSend={async ({ message }) => getAssistantReply(message)}/>Composition
Compose with icons, form triggers, and layout containers.
import AiChatBlock from '@/components/blocks/ai-chat/ai-chat-block' export function ChatSection() { return ( <section className="h-dvh bg-background p-4"> <AiChatBlock className="h-full min-h-0" /> </section> )}API Reference
Property matrix, types, defaults, and usage descriptions.
Data Attributes
State-reflecting DOM attributes for custom selector styling.
How It Works
AiChatBlock composes AiChatInput, ThinkingState, and StreamedMarkdown into a single conversational surface. Sending a prompt creates a run, plays a mode-aware tool trace, then streams a markdown answer. Plan mode limits the trace to reasoning and inspection nodes; Agent mode adds patch and terminal nodes.
Accessibility
The composer, mode switcher, trace disclosure, and streamed answer are keyboard reachable. Reduced motion is respected by the underlying motion components.
Limitations
Features
Meet the team behind the block
Crafted for modern web applications and AI agent workflows.
