Bubble
Message bubble
One message in a conversation — chat, comments, an assistant's reply. Put bubbles in a Message for the avatar, name and time around them.
Basic
surface (default)
outline
plain — no box
accent, end, reactions
Long text clamped to two lines. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco.
align="end"for the viewer's own messages —variant="outline"sets them apart without colour;accentis for a message that is chosen (a pinned or selected one).collapsibleclamps a long message tolineswith a Show more toggle that says whether it's open.reactionsare pressed-state buttons (@react).
Usage
ts
import { BlessBubble } from "blessing-ui";API
Props
| Name | Type | Default | Description |
|---|---|---|---|
variant | "accent" | "surface" | "outline" | "plain" | "surface" | |
align | "start" | "end" | "start" | |
collapsible | boolean | — | clamp to n lines with a show-more toggle |
lines | number | 4 | |
reactions | BlessReaction[] | — | |
moreLabel | string | "Show more" | |
lessLabel | string | "Show less" |
Events
| Name | Payload | Description |
|---|---|---|
react | [reaction: BlessReaction] |
Slots
| Name | Scope | Description |
|---|---|---|
default | — |