fndn/ui

Blocks

Chat Composer

Beta

A chat panel with conversation tabs, a thread of messages and a composer.

Details

A compact chat panel with conversation tabs, a thread and a composer. A pill tab strip switches between conversations (our tabs; panels swap instantly), the thread is made of Message components (the user's prompts as bubbles, the agent's steps as labelled messages), and a composer at the bottom sends. Enter sends, Shift+Enter starts a new line, nothing sends during an IME composition. Suggestion pills fill the composer; while the agent works they give way to a shimmering status and send turns into stop. The card keeps its height: the thread scrolls.