Skip to content

ChatList

Category: Chat

<ChatList style={{ height: 480 }}>
{messages.map((m) => (
<ChatMessage key={m.id} role={m.role} avatar={<Avatar fallback={m.avatar} />} time={m.time}>
{m.text}
</ChatMessage>
))}
{isStreaming ? (
<ChatMessage role="assistant" pending>
{streamedText}
<StreamingIndicator />
</ChatMessage>
) : null}
</ChatList>

Install: @helix-ui/core

import { ChatList } from '@helix-ui/core';

status: stable · since: 0.3.0

Tags: messages, scroll, sticky-bottom, feed

┌────────────────────────┐
│ [old messages above] │ ↑ scrolls
│ ChatMessage │
│ ChatMessage │
│ ChatMessage ← new │ ← stays pinned to bottom unless user scrolled up
└────────────────────────┘
  • display — flex
  • width — fill
  • height — fill
  • intrinsicSize — fills available height, scrolls
  • stackable — false
  • fullBleed — false

A vertically scrolling column that auto-pins to the bottom when new messages arrive — but only if the user is already near the bottom. If they scrolled up to read history, new messages do not yank them back.

Name Type Default Description
autoScroll boolean true Auto-scroll on children change (only if user is near the bottom).
label string Conversation aria-label for the log container.
  • children — ChatMessage components

space.4, font.family.sans

Role: log

Notes

  • Container is role="log" with aria-live="polite". New messages are announced once.
  • The sticky-to-bottom behaviour preserves the user’s reading position when they scroll up.
Component Relation Note
ChatMessage child Each child is a ChatMessage.
ChatHeader sibling Sits below ChatHeader.
ChatComposer sibling Sits above ChatComposer.
TypingIndicator sibling

These are the AI prompt → JSX mappings used by the helix-ui prompt DSL and integrations like Cursor / Claude Code.

“list of chat messages with sticky-bottom”

<ChatList>
{messages.map((m) => (
<ChatMessage key={m.id} role={m.role}>
{m.content}
</ChatMessage>
))}
</ChatList>