PaceUI

  • Components
  • Blocks
  • Templates
  • Studio
  • Resources
Native AI
  • Introduction
Components
  • Browser Support
  • Response Renderer
  • Chat Header
  • Chat Messages
  • Chat Suggestions
  • Chat Input
Use Cases
  • Quick Chat
  • Follow Ups
Hooks
  • useBrowserSupport
  • useNativeAI
  1. Components
  2. Native AI
PreviousNext

Chat Messages

Native AI message list with streaming and typing states in React.

Overview

The ChatMessages component takes a history list and handles layout, styling, system-role filtering, empty states, and auto-scrolling to the bottom as new content streams in.

default.tsx

API Reference

Props

PropTypeDescriptionDefault
messagesChatMessage[]A list of user, system, and assistant messages.(Required)
isLoadingbooleanIf true, displays a typing indicator at the end of the conversation.false
isSupportedbooleanDetermines whether to show the emptyState component.false
messagesEndRefRefObject<HTMLDivElement>React ref attached to the auto-scroll target element at the base of the list.(Required)
emptyStateReactNodeThe UI view to display when the message list is empty.undefined
Chat HeaderChat Suggestions

PaceUI

Animated blocks, components, and templates for Next.js and TanStack Start. Built with Motion and shadcn - clean code you own.

GitHubTwitterDiscord

Products

BlocksComponentsTemplatesCraftsTanStack ChartsMCP ServerStarter KitsStyleX Components

Resources

DocumentationMotion ComponentsGSAP AnimationsNative AIBlogChangelog

Pricing & Account

PricingManage AccountLicensesAPI KeysAffiliate Program

Company

Contact UsDiscord CommunityPrivacy PolicyTerms of Service

© 2026 PaceUI. All rights reserved. Built by indie developer, Denish

PACEUI

Hi! How does Chrome local AI work?

It uses Gemini Nano built directly into the Google Chrome browser, running queries directly on your device.

Awesome, can it render markdown?

Thinking...