Bubble
The text container of a chat message, in seven variants, with optional reactions.
๐ 3
Usage
import { Bubble, BubbleContent, BubbleGroup, BubbleReactions } from "@zynactra/ui/bubble"<Bubble variant="muted" align="start">
<BubbleContent>Shipped.</BubbleContent>
<BubbleReactions>๐ 3</BubbleReactions>
</Bubble>Variants: default, secondary, muted, tinted, outline, ghost, destructive. align is start or end. BubbleReactions takes side (top, bottom) and align.
Guidelines
- Two variants per conversation: one for "me", one for everyone else. The rest are for special cases (
destructivefor a failed send,tintedfor a system note). - Never
brandon a bubble. Chat is content, not an action. - Long content (code, tables) goes in a
ghostbubble at full width.