Show one turn of a chat: the person's in a raised bubble, the assistant's as text with Copy, Retry & a thumbs up.
View as MarkdownInstallation
Component API
| Prop | Type | Default | Description |
|---|---|---|---|
from | user | assistant | assistant | Who wrote it: the person's turn sits on the right in a raised bubble, the assistant's on the left as plain text. |
| Who wrote it: the person's turn sits on the right in a raised bubble, the assistant's on the left as plain text. | |||
children | ReactNode | - | The message. |
| The message. | |||
name | string | - | A name over an assistant's message. |
| A name over an assistant's message. | |||
avatar | ReactNode | - | A small mark beside the name, such as the model's. |
| A small mark beside the name, such as the model's. | |||
copyText | string | - | |
onRetry | () => void | - | Adds Retry under an assistant's message. |
| Adds Retry under an assistant's message. | |||
onFeedback | (good: boolean) => void | - | Adds a thumbs up under an assistant's message, called with its new state. |
| Adds a thumbs up under an assistant's message, called with its new state. | |||
shape | none | rounded | pill | rounded | |
className | string | - | |
focus | boolean | string | true | |