# Two-sided conversation

> Incoming and outgoing rows separated by nothing but the align prop.

A shadcn/ui block from the [@reui](https://reui.io) registry, listed on [shadcn.exchange](https://shadcn.exchange/r/reui/c-message-1).

- Page, with a live preview: https://shadcn.exchange/r/reui/c-message-1
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/reui/c-message-1-light-d68e02a87a32e38b.png
- Registry item: https://reui.io/r/new-york-v4/c-message-1.json
- Listed: 2026-10-13, source last changed 2026-10-13

## Install

```bash
npx shadcn@latest add https://reui.io/r/new-york-v4/c-message-1.json
```

Run it in a project that has shadcn/ui set up. It adds the files below and installs what they depend on.

## Dependencies

- Registry items: `bubble`, `message`

## Files

### `c-message-1.tsx`

```tsx
import { Bubble, BubbleContent } from "@/components/ui/bubble"
import { Message, MessageContent } from "@/components/ui/message"

/*
 * align="end" is the whole mechanism for an outgoing turn: Message writes it
 * out as data-align and reverses its own flex row, so no ms-auto is needed.
 */
export function Pattern() {
  return (
    <div className="mx-auto flex w-full max-w-sm flex-col gap-6">
      <Message>
        <MessageContent>
          <Bubble variant="muted">
            <BubbleContent>
              Staging is green on 4.2. Want me to promote it?
            </BubbleContent>
          </Bubble>
        </MessageContent>
      </Message>

      {/*
        Side alone is the first cue lost when a thread is read aloud or
        collapsed into one column, so the bubble variant carries it too.
      */}
      <Message align="end">
        <MessageContent>
          <Bubble>
            <BubbleContent>
              Hold it. The billing migration has to go out in the same release.
            </BubbleContent>
          </Bubble>
        </MessageContent>
      </Message>

      <Message>
        <MessageContent>
          <Bubble variant="muted">
            <BubbleContent>
              Understood. The migration lands after the 2pm review.
            </BubbleContent>
          </Bubble>
        </MessageContent>
      </Message>

      <Message align="end">
        <MessageContent>
          <Bubble>
            <BubbleContent>
              Then I will cut the tag straight after.
            </BubbleContent>
          </Bubble>
        </MessageContent>
      </Message>
    </div>
  )
}
```
