Thread list rows for chat sidebars and conversation pickers.
Use ChatListView to render recent conversations or saved threads.
import {ChatListView} from "@heroui-pro/react";
<ChatListView aria-label="Recent chats">
<ChatListView.Item textValue="Project planning">
<ChatListView.ItemContent>
<ChatListView.Icon>{/* ... */}</ChatListView.Icon> {/* Optional */}
<ChatListView.Text>
<ChatListView.Title>Project planning</ChatListView.Title>
<ChatListView.Preview>Last assistant reply preview</ChatListView.Preview> {/* Optional */}
</ChatListView.Text>
<ChatListView.Meta>2h</ChatListView.Meta> {/* Optional */}
</ChatListView.ItemContent>
</ChatListView.Item>
</ChatListView>;Use the compact variant for dense sidebars.
HeroUI follows the BEM methodology to ensure component variants and states are reusable and easy to customize.
The Chat List View component uses these CSS classes:
.chat-list-view: Root list.chat-list-view__icon: Leading icon/avatar.chat-list-view__text: Title and preview column.chat-list-view__title: Thread title.chat-list-view__preview: Thread preview.chat-list-view__meta: Optional metadata.chat-list-view--comfortable / .chat-list-view--compact: Row density, from densityRoot list container. Supports native div props.
Thread row. Supports native button/link composition depending on usage.
Row content wrapper for the icon, text, and metadata.
Leading icon slot.
Title and preview column.
Thread title slot.
Thread description or last-message preview slot.
Optional metadata slot, such as date or unread counts.
Resources