> A component of a Premium AI Canvas design system. Index of every system, component and install setup: https://aicanvas.me/llms.txt

# Message (Andromeda Pro)

Shows one turn of a conversation, from the user or from the assistant, with its actions.

- Design system: [Andromeda Pro](https://aicanvas.me/design-systems/andromeda-pro.md)
- License: Premium (proprietary)
- Install slug: `andromeda-pro-message`
- Page: https://aicanvas.me/design-systems/andromeda-pro/message

## Install

```bash
npx shadcn@latest add @aicanvas/andromeda-pro-message
```

Requires Premium. Without a Premium token the command writes a placeholder instead of the component.

Every Andromeda Pro component at once: `npx shadcn@latest add @aicanvas/andromeda-pro`.

Token setup: the Install section of https://aicanvas.me/llms.txt.

## Props

### Message

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `from` | `'user'\|'assistant'` |  | Who spoke. user: bubble on the right sized to its words, mark on the right. assistant: full-width panel on the left, mark on the left. |
| `busy?` | `boolean` | `false` | The answer is still arriving: sets aria-busy on the turn, and MessageActions renders nothing until it settles. |
| `children?` | `React.ReactNode` |  | A MessageAvatar, a MessageContent and an optional MessageActions, in any order. |
| `className?` | `string` |  | Additional CSS classes applied to the root element. |
| `style?` | `React.CSSProperties` |  | Inline styles applied to the root element. |

### MessageAvatar

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `children` | `React.ReactNode` |  | user: an Avatar at size="md". assistant: an 18px glyph (tokens.iconSize.md), e.g. the product mark. |
| `framed?` | `boolean` |  | Draw the 32px box around the child: a border.base hairline, text.secondary ink, the glyph centred. Defaults to true for the assistant and false for the user, whose Avatar brings its own frame. |
| `className?` | `string` |  | Additional CSS classes applied to the root element. |
| `style?` | `React.CSSProperties` |  | Inline styles applied to the root element. |

### MessageContent

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `children?` | `React.ReactNode` |  | user: the words sent. assistant: the answer, any mix of prose, tables, artifacts, tool steps and suggestions, stacked spacing[3] apart. |
| `className?` | `string` |  | Additional CSS classes applied to the root element. |
| `style?` | `React.CSSProperties` |  | Inline styles applied to the root element. |

### MessageActions

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `meta?` | `React.ReactNode` |  | Leading text, in text.muted: the time, or "time · duration", or "time · Stopped". |
| `children?` | `React.ReactNode` |  | The actions: IconButtons at size="sm", variant="ghost". Pushed to the far end on an assistant turn, beside the meta on a user turn. |
| `className?` | `string` |  | Additional CSS classes applied to the root element. |
| `style?` | `React.CSSProperties` |  | Inline styles applied to the root element. |

## Remix prompt

The public part of this component's remix prompt. The rest of the build spec is part of Premium.

```markdown
Build **Message**: one turn of a conversation, from the user or from the assistant. React + TypeScript, one file, named exports `Message`, `MessageAvatar`, `MessageContent`, `MessageActions`.

It is drawn to sit on a near-black ground, `oklch(0.135 0.002 286.2)`. The component never paints that ground itself. Typeface: Manrope, falling back to the system sans. Every part takes `className`, `style` and the rest of its `<div>` props, and forwards a ref to its `<div>`.

The two turns mirror each other and differ only where the job differs. The user's words sit on the right in a bubble sized to them. The assistant's answer sits on the left in a panel that fills the row, because it is the thing being read and often carries a whole table or chart. Everything else is shared: the same 32px mark, the same overlay tone with no border, the same padding, the same meta-then-actions row underneath.
```

## More Andromeda Pro components

- [Table Basic](https://aicanvas.me/design-systems/andromeda-pro/table-basic.md)
- [Table Data](https://aicanvas.me/design-systems/andromeda-pro/table-data.md)
- [Music Player](https://aicanvas.me/design-systems/andromeda-pro/music-player.md)
- [Navbar](https://aicanvas.me/design-systems/andromeda-pro/navbar.md)
- [Nav Item](https://aicanvas.me/design-systems/andromeda-pro/nav-item.md)
