You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/paste-website/src/pages/components/ai-chat-log/index.mdx
+31-31Lines changed: 31 additions & 31 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -206,33 +206,6 @@ The `AIChatMessageBody` component has two sizes, `size="default"` and `size="ful
206
206
</AIChatLog>`}
207
207
</LivePreview>
208
208
209
-
### Messages with animation
210
-
The `AIChatMessageBody` component has an optional `animate` prop that can be used to apply a typewriter animation to the text. This should only be applied to the most recent message received from the AI.
211
-
212
-
<LivePreview
213
-
scope={{
214
-
AIChatLog,
215
-
AIChatMessage,
216
-
AIChatMessageAuthor,
217
-
AIChatMessageBody,
218
-
AIChatMessageActionCard,
219
-
AIChatMessageActionGroup,
220
-
Button,
221
-
ThumbsUpIcon,
222
-
ThumbsDownIcon,
223
-
CopyIcon,
224
-
RefreshIcon,
225
-
Button,
226
-
ResetIcon,
227
-
Anchor,
228
-
InlineCode
229
-
}}
230
-
language="jsx"
231
-
noInline
232
-
>
233
-
{animatedBotWithFeedback}
234
-
</LivePreview>
235
-
236
209
### Message with Actions
237
210
238
211
Message actions can be used to provide quick responses or actions to the user.
@@ -283,14 +256,14 @@ Actions can still be added in `AIChatMessageBody` which are returned from the AI
283
256
{botWithBodyActions}
284
257
</LivePreview>
285
258
286
-
### Loading States
259
+
### Generating Messages
260
+
261
+
#### Loading
287
262
288
263
Use the `AIChatMessageLoading` component to indicate that the bot is typing or processing a response. During this time **no user input should be accepted**. No new messages should be added to a chat until the AI operation is finished processing.
289
264
290
265
The SkeletonLoader lengths vary on each render to give a more natural pending message body interaction.
291
266
292
-
#### Loading
293
-
294
267
<LivePreview
295
268
scope={{
296
269
AIChatLog,
@@ -305,7 +278,7 @@ The SkeletonLoader lengths vary on each render to give a more natural pending me
305
278
{botWithLoading}
306
279
</LivePreview>
307
280
308
-
#### Loading with Stop Button
281
+
#####Loading with Stop Button
309
282
310
283
<LivePreview
311
284
scope={{
@@ -321,6 +294,33 @@ The SkeletonLoader lengths vary on each render to give a more natural pending me
321
294
{botWithLoadingStopButton}
322
295
</LivePreview>
323
296
297
+
### Animating
298
+
The `AIChatMessageBody` component has an optional `animated` prop that can be used to apply a typewriter animation to the text. This should only be applied to the most recent message received from the AI.
299
+
300
+
<LivePreview
301
+
scope={{
302
+
AIChatLog,
303
+
AIChatMessage,
304
+
AIChatMessageAuthor,
305
+
AIChatMessageBody,
306
+
AIChatMessageActionCard,
307
+
AIChatMessageActionGroup,
308
+
Button,
309
+
ThumbsUpIcon,
310
+
ThumbsDownIcon,
311
+
CopyIcon,
312
+
RefreshIcon,
313
+
Button,
314
+
ResetIcon,
315
+
Anchor,
316
+
InlineCode
317
+
}}
318
+
language="jsx"
319
+
noInline
320
+
>
321
+
{animatedBotWithFeedback}
322
+
</LivePreview>
323
+
324
324
### Customizing Avatar
325
325
326
326
`AIChatMessageAuthor` can be customized by passing an icon, image, or string to the `avatarIcon`, `avatarSrc`, or `avatarName` props. [Learn more about the API](/components/ai-chat-log/api#aichatmessageauthor).
0 commit comments