ChatList
ChatList
Section titled “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
Anatomy
Section titled “Anatomy”┌────────────────────────┐│ [old messages above] │ ↑ scrolls│ ChatMessage ││ ChatMessage ││ ChatMessage ← new │ ← stays pinned to bottom unless user scrolled up└────────────────────────┘Layout
Section titled “Layout”- display —
flex - width —
fill - height —
fill - intrinsicSize —
fills available height, scrolls - stackable —
false - fullBleed —
false
Visual
Section titled “Visual”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
Tokens used
Section titled “Tokens used”space.4, font.family.sans
Accessibility
Section titled “Accessibility”Role: log
Notes
- Container is
role="log"witharia-live="polite". New messages are announced once. - The sticky-to-bottom behaviour preserves the user’s reading position when they scroll up.
Composes with
Section titled “Composes with”| Component | Relation | Note |
|---|---|---|
ChatMessage |
child |
Each child is a ChatMessage. |
ChatHeader |
sibling |
Sits below ChatHeader. |
ChatComposer |
sibling |
Sits above ChatComposer. |
TypingIndicator |
sibling |
Prompt examples
Section titled “Prompt examples”These are the AI prompt → JSX mappings used by the helix-ui prompt DSL and integrations like Cursor / Claude Code.
render an AI conversation
Section titled “render an AI conversation”“list of chat messages with sticky-bottom”
<ChatList> {messages.map((m) => ( <ChatMessage key={m.id} role={m.role}> {m.content} </ChatMessage> ))}</ChatList>