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: apps/docs/content/components/(chatbot)/message.mdx
+4-59Lines changed: 4 additions & 59 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -313,14 +313,9 @@ export default ActionsDemo;
313
313
314
314
<TypeTable
315
315
type={{
316
-
from: {
317
-
description:
318
-
"Aligns the selector for user, assistant or system messages.",
319
-
type: 'UIMessage["role"]',
320
-
},
321
316
"...props": {
322
-
description: "Any other props are spread to the selector container.",
323
-
type: "React.HTMLAttributes<HTMLDivElement>",
317
+
description: "Any other props are spread to the underlying ButtonGroup component.",
318
+
type: "React.ComponentProps<typeof ButtonGroup>",
324
319
},
325
320
}}
326
321
/>
@@ -360,66 +355,16 @@ export default ActionsDemo;
360
355
}}
361
356
/>
362
357
363
-
### `<MessageAttachments />`
358
+
### `<MessageToolbar />`
364
359
365
-
A container component for displaying file attachments in a message. Automatically positions attachments at the end of the message with proper spacing and alignment.
360
+
A container for placing actions and branch selectors below a message. Lays out children in a horizontal row with space-between alignment.
366
361
367
362
<TypeTable
368
363
type={{
369
-
children: {
370
-
description:
371
-
"MessageAttachment components to render. Returns null if no children provided.",
372
-
type: "ReactNode",
373
-
},
374
364
"...props": {
375
365
description: "Any other props are spread to the root div.",
Displays a single file attachment. Images are shown as thumbnails (96px × 96px) with rounded corners. Non-image files show a paperclip icon with the filename.
394
-
395
-
<TypeTable
396
-
type={{
397
-
data: {
398
-
description: "The file data to display. Must include url and mediaType.",
399
-
type: "FileUIPart",
400
-
},
401
-
onRemove: {
402
-
description:
403
-
"Optional callback fired when the remove button is clicked. If provided, a remove button will appear on hover.",
404
-
type: "() => void",
405
-
},
406
-
"...props": {
407
-
description: "Any other props are spread to the root div.",
0 commit comments