Conversation
A chat transcript that follows new messages.
It’s a log region, read out as messages arrive. The scroller follows new content while you’re
at the bottom, and leaves you where you are once you scroll up. MessageStep shows a tool call
under an assistant’s message.
Dependencies
What it's built from and what's built from it in Base, read from the imports in its source.
| Uses | Scroll AreaprimitiveTextprimitive |
|---|---|
| Used by | Nothing yet. |
| Packages | None. |
Installation
Set the project up for Base once first, as Getting started shows. Then add it with the CLI, or by hand.
With the CLI
Manually
Add the components it uses first, listed under Dependencies.
Then copy the source:
API reference
Generated from Base's types. Props marked ours are added here; the rest come from the ui-sdk part it wraps. Every part also accepts its element's native attributes.
Conversation
The transcript's scrolling log. Give it a height and an aria-label. It starts at the newest message and follows new ones while you're at the bottom; scrolling up lets go.
Takes the props of a native div.
Message
One message. Plain text and inline elements wrap; longer content can be anything.
- from*ours
Who wrote it. The person's messages sit on the right, in a shaded box.
Type "user" | "assistant"
- nameours
A name over the message, like the agent's.
Type ReactNode
MessageStep
A tool call or step under an assistant's message: a name and its state.
- stateours
Type "done" | "error" | "running" · Default done