Message
Preview

Message shells, response rendering, markdown, attachments, and actions.

Overview

Message provides layout and visual treatment for user and assistant messages. It does not own message records, streaming state, or persistence.

Use MessageResponse for assistant-authored markdown. It wraps Streamdown, so normal markdown rendering works through the component without importing Streamdown at the call site.

Usage

import {
  Attachment,
  AttachmentPreview,
  Attachments,
  Message,
  MessageAction,
  MessageActions,
  MessageContent,
  MessageResponse,
  MessageToolbar,
} from "@tilt-legal/cubitt-components/chat-elements";

Examples

Default

Markdown

Attachments

On this page