Appearance
Function: Conversation()
Call Signature
ts
function Conversation(content: ChildBlock[]): Block;Defined in: src/renderer/blocks/index.ts:1957
Experimental
Conversation — scrollable transcript container. Auto-scrolls to the latest child unless the user has scrolled up.
Parameters
| Parameter | Type |
|---|---|
content | ChildBlock[] |
Returns
Example
ts
Conversation([
Message({from: 'user'}, [MessageBody({content: 'Hi'})]),
Message({from: 'assistant'}, [MessageBody({content: 'Hello!'})]),
]);Call Signature
ts
function Conversation(options: ConversationProps, content: ChildBlock[]): Block;Defined in: src/renderer/blocks/index.ts:1958
Experimental
Conversation — scrollable transcript container. Auto-scrolls to the latest child unless the user has scrolled up.
Parameters
| Parameter | Type |
|---|---|
options | ConversationProps |
content | ChildBlock[] |
Returns
Example
ts
Conversation([
Message({from: 'user'}, [MessageBody({content: 'Hi'})]),
Message({from: 'assistant'}, [MessageBody({content: 'Hello!'})]),
]);