On this page

Message

When to use Message, its parts, content and the tokens it uses.

Draft. Ported from the shadcn-vue registry (style reka-nova, read 12 November 2026) and styled with Beehexa tokens. Not yet approved; the API may still change.

Message lays out one turn in a conversation: the sender, what they said and when. It holds a Bubble, attachments or plain text; it does not draw the text itself.

When to use

  • Support chats with customers, notes between teams on an order or a CRM account, answers from an assistant.
  • Any list where each entry has a sender and people read the turns in order.

When not to use

  • For a log of system events with no sender, such as sync runs. Use a table.
  • For one short result after an action. Use a toast or a message on the page.
  • For comments that need threads, votes or editing. Build them on Message, and add the controls they need.

Parts

Part Job
Message One turn. align="end" puts the current user’s own messages on the right.
MessageAvatar Holds an Avatar. Lines up with the bottom of the bubble, not the footer.
MessageContent Stacks the header, bubbles, attachments and footer.
MessageHeader The sender’s name.
MessageFooter The time, the read status, or actions such as Copy.
MessageGroup Several turns, a little closer together.

Content

  • Name the sender once, in the header of the first message in a row; don’t repeat it on every bubble.
  • Write the status in words (“Read”, “Sent”), not as an icon alone.
  • The current user’s messages go at the end (align="end"); everyone else’s at the start.
  • Show times in the reader’s time zone.

Tokens

  • Text: font.body.default in color.text. Header and footer: font.label.small in color.text.subtle, inset space.150 so they line up with the bubble text.
  • Gaps: space.100 between the avatar and the content, and between the parts.
  • Avatar column: at least avatar.size.default wide, radius.pill, color.background.neutral. With a footer it moves up space.300 (the footer line and the gap) so it lines up with the bubble.