On this page

Bubble

When to use Bubble, its variants, 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.

A bubble holds the text of one message. Its fill tells people who wrote it at a glance. Put it inside a Message, which adds the sender and the time.

When to use

  • The text of chat messages, notes and assistant answers.
  • Suggested replies people can pick (BubbleContent as="button").

When not to use

  • For page content that is not a message. Use a card or plain text.
  • For status. A coloured bubble is not a status label; use a badge or a banner.

Variants

Variant Fill Use for
default color.background.neutral.bold, text color.text.inverse The current user’s messages
secondary color.background.neutral Other people’s messages
muted color.surface.subtle Quiet system notes: “Minh joined”
tinted color.background.brand.subtle with a color.border.brand.subtle edge One message that needs to stand out, such as a pinned note
outline color.surface with a color.border edge Quoted content, suggested replies
ghost None, no padding Long answers that read as page text
destructive color.background.danger.subtle, text color.text.danger A message that failed to send. Say why in the text

Keep to two variants for people (default and secondary) in one conversation. Colour alone never carries meaning: the side, the header and the text say who wrote what.

Content

  • Write messages as people talk: short sentences, no title case.
  • Put links in the text, underlined, as everywhere else.
  • A failed message says what to do next: “Not sent. Check your connection and try again.”

Behaviour

  • A bubble is at most 80% of the row wide, so the side it sits on stays clear. Ghost bubbles take the full width.
  • A BubbleContent rendered as a button or link takes the hover fill of its variant (state tokens, never transparency) and the Button focus ring.

Tokens

  • radius.card; padding space.150 by space.100; font.body.default.
  • Bubbles in a group sit space.100 apart; a bubble and its reactions space.050.
  • Reactions: radius.pill on color.background.neutral, ringed in color.surface so they stand off the bubble.