Documentation Index
Fetch the complete documentation index at: https://veryfront.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
Chat composition
Use composition when the presetChat component is too constrained but you still want Veryfront to own the chat wiring.
The examples use the same useChat({ api: "/api/ag-ui" }) setup as the Chat UI guide. Create the AG-UI route first, then render these components in a client page and verify them with veryfront dev.
Prerequisites
- A working preset Chat UI (see Chat UI).
- The
/api/ag-uiroute mounted withcreateAgUiHandler.
Layout components
Empty state
Message compound components
UseMessage when individual message rendering needs custom structure:
Sidebar with threads
Verify it worked
Render your composed layout in a client page, runveryfront dev, and:
- Confirm the header, message list, and composer all render where you placed them.
- Submit a message and confirm tokens stream into the message list (the same
AG-UI flow as the preset
Chatcomponent). - For
Messagecompound components, confirm avatar, content, and actions render in the order you arranged them.
Next
- Chat hooks: manage chat state without preset components
- Chat theming: customize chat features and visuals
Related
- Chat UI: preset chat component
veryfront/chat: chat reference