Skip to content
Playground

Bubble

A composable conversation surface for messages, suggestions, and reactions.

Bubble presents short conversational content without owning the surrounding chat model. Keep avatars, sender names, timestamps, delivery state, and message-level actions in the parent interface.

The deployment is ready for review.
I also attached the accessibility report.
Looks good. Ship it.
TSX
import { Bubble } from "@zentara-co/zenos-ui";

Compose Bubble.Content inside a root Bubble. Use Bubble.Group for consecutive messages from the same sender and Bubble.Reactions for a compact reaction or quick-action row.

TSX
<Bubble variant="secondary">  <Bubble.Content>The report is ready.</Bubble.Content>  <Bubble.Reactions role="img" aria-label="One thumbs up reaction">    <span>👍</span>  </Bubble.Reactions></Bubble>

Reactions overlap the selected bubble edge. Leave enough space between conversation rows when reactions are present.

Place any custom control inside Bubble.Actions to attach it to the logical end of the bubble. Actions default to visibility="hover": they appear on hover or keyboard focus on pointer devices and remain available on devices without hover. Use visibility="always" for persistent controls. The slot accepts dropdown menus, emoji-picker triggers, buttons, or any other element without owning its behavior.

Hover or focus this message to reveal its menu.
This reaction action always stays visible.

Use default for a strong current-user message, secondary for standard conversation content, muted for supporting information, tinted for quiet brand emphasis, outline for bordered rich content, ghost for unframed assistant output, and destructive for failed or unsafe results.

Default — strong current-user emphasis.
Secondary — standard conversation content.
Muted — quiet supporting information.
Tinted — subtle brand emphasis.
Outline — bordered rich content.
Ghost — unframed assistant text that can use the full row.
Destructive — the deployment failed validation.

Use any stable custom variant name with variantClassName to define a consumer-owned content treatment. The name is exposed through data-variant, while Zenos preserves Bubble layout, alignment, reactions, and native content behavior.

Campaign launch is ready for review.

Set align="start" or align="end" on each Bubble. Alignment and reaction placement use logical CSS edges, so the same composition mirrors automatically inside DirectionProvider direction="rtl" or an RTL document.

Bubble.Content defaults to a div. Use as="button" or as="a" when the complete surface performs an action or navigates. Native props and refs follow the selected element, and Zenos supplies a visible keyboard focus ring.

How should I handle the failed deployment?

No option selected.

Variants

defaultsecondarymutedtintedoutlineghostdestructive
Bubble.Root
Bubble.Group
Bubble.Actions
Bubble.Content
Bubble.Reactions

API

PropTypeDefaultDescription
variant BubbleVariant | custom string default Semantic surface treatment for the bubble content.
variantClassName string — Consumer-owned classes applied to Bubble.Content for a custom variant.
align start | end start Logical inline alignment of the bubble within its conversation row.
Actions.visibility hover | always hover Reveals custom end actions on hover and focus or keeps them visible.
Content.as ElementType div Renders content as a semantic element such as a button or link.
Reactions.side top | bottom bottom Bubble edge overlapped by the reaction row.
Reactions.align start | end start Logical position of reactions along the selected edge.
native props React.HTMLAttributes<HTMLElement> — Forwards native attributes, events, aria-*, data-*, className, style, and ref.

Unless narrowed above, each DOM-rendering part also accepts its underlying native or Base UI props, including className, style, aria-*, and data-*.

Bubble is a presentational surface rather than a complete chat transcript. Put conversation semantics such as role="log", sender context, and live-region behavior on the surrounding interface. Give every interactive control inside Bubble.Actions an accessible name; hover-only actions are also revealed by keyboard focus. When reactions are decorative summaries, group them with role="img" and a descriptive aria-label; when they are actions, render labeled buttons instead. Destructive meaning must also be stated in text rather than communicated by color alone.