---
id: portfolio.ds.chat-message-list
name: "Chat Message List"
type: component
status: active
relations: [{"type":"composes","target":"portfolio.ds.chat-user-message"},{"type":"composes","target":"portfolio.ds.chat-assistant-message"},{"type":"composes","target":"portfolio.ds.chat-suggested-questions"},{"type":"supersedes","target":"portfolio.ds.chat-message-list-old"},{"type":"uses_token","target":"portfolio.ds.primitive-scale"}]
sources: ["packages/design-system/src/components/ChatMessageList.astro","apps/portfolio-site/src/design-system/docs/chat-message-list.astro","apps/portfolio-site/src/lib/designSystemRegistry.ts"]
catalog: ["apps/portfolio-site/src/design-system/docs/chat-message-list.astro"]
previews: ["apps/portfolio-site/src/design-system/docs/chat-message-list.astro"]
---
# Chat Message List

## Purpose
Render the ordered conversation log from user and assistant messages.

## Contract
- Chat Message List is private to Chat and must be rendered only by Chat.
- Composes only Chat User Message and Chat Assistant Message for initial entries and inert runtime templates.
- Is the sole product parent of Chat Suggested Questions. Optional `suggestions` accepts the group's `questions`, `label` and `disabled` props. The group follows the live log rather than becoming a message; no group is rendered by default or for an empty list.
- Supplies an inert template using the same group and button for dynamic follow-ups. Chat fills its plain-text labels from the latest validated reply.
- Accepts `messages`, the accessible log `label`, role labels and Assistant state labels.
- Fills the available width and follows its message content height without padding or scrolling. Parent Chat owns the scroll surface, Composer overlay and bottom clearance.
- The message stack uses responsive `--primitive-space-9` between entries. Message children own their own Block spacing.
- Preserves native `role="log"`, polite complete-message additions and source order.

## Use
- Use only inside Chat as its private message-log child. Pages, applications and other components must not render it directly.

## Do Not Use
- Do not place page blocks, Composer, adapter logic, request state or scrolling behavior inside this component.

## Accessibility
- Preserve the accessible conversation label, ordered role articles and polite announcement of complete additions.

## Verification
- Check empty, long and mixed-role histories, wrapping, spacing and announcement order.
- Confirm only user and assistant messages are inside the live log; optional question controls are outside it.

## Enabled Profile Records
- Registry ID: chat-message-list.
- Canonical route: /design-system/chat-message-list/.
