Bubble: Right to left
Alignment, joined corners, tails and reactions all mirror in right-to-left layouts.
This adds the example as components/examples/bubble/rtl.tsx, together with the Bubble component and the HextaUI theme tokens it needs.
pnpm dlx shadcn@latest add https://hextaui.com/r/bubble-rtl.jsonTo add only the component, follow the Bubble installation.
Props in this example
The Bubble props this example sets, from the API reference.
| Prop | Type | Default |
|---|---|---|
variant | "default" | "secondary" | "muted" | "tinted" | "outline" | "ghost" | "destructive" | "default" |
align | "start" | "end" | "start" |
| Prop | Type | Default |
|---|---|---|
renderRender a <button> or <a> to make it interactive. | ReactElement | (props, state) => ReactElement | <div> |
| Prop | Type | Default |
|---|---|---|
shapeApplies to every bubble inside the group. | "uniform" | "joined" | "tail" | – |
Every prop is in the Bubble API reference.
See them all, with keyboard support and accessibility notes, on the Bubble page.
- AttachmentFile and image cards for uploads, with progress, states, actions, a full-card trigger and names that keep their extension.
- MarkerQuiet notes between content, like date dividers and system events, with sticky dates and times that read as Today or Yesterday.
- MessageA chat message row with an avatar, name, bubbles and status, where new messages rise in from the sender's side.
- Message scrollerA chat scroll area that follows new messages, keeps your place while you read back, and counts what you missed on the jump button.