Message: Assistant
A ghost bubble spans the full width for long answers, and an icon in <MessageAvatar /> becomes a round tile.
This adds the example as components/examples/message/assistant.tsx, together with the Message component and the HextaUI theme tokens it needs.
pnpm dlx shadcn@latest add https://hextaui.com/r/message-assistant.jsonTo add only the component, follow the Message installation.
Props in this example
The Message props this example sets, from the API reference.
| Prop | Type | Default |
|---|---|---|
alignSide of the conversation. Bubbles inherit it. | "start" | "end" | "start" |
Every prop is in the Message API reference.
See them all, with keyboard support and accessibility notes, on the Message page.
- BubbleChat message bubbles with variants, grouped corners, reactions and room for interactive content.
- AvatarUser photos with an initials fallback, status badges and stacked groups that collapse into a count.
- AttachmentFile and image cards for uploads, with progress, states, actions, a full-card trigger and names that keep their extension.
- MarkerQuiet notes between content, like date dividers and system events, with sticky dates and times that read as Today or Yesterday.
- Message scrollerA chat scroll area that follows new messages, keeps your place while you read back, and counts what you missed on the jump button.