Chat thread preview
A message history that follows new replies while preserving your place in older messages.
pro · Blocks · composite
When to use
- Use it when a page needs a message history that follows new replies while preserving your place in older messages.
- Choose it inside an authenticated product surface when the host application owns routing, persistence, and service calls.
Alternatives
- Choose empty-state instead when empty collections, search results and errors with a clear next action is the actual interface need, rather than chat thread.
Configure components.json and the @tidal-pro namespace before installing Pro components.
Installation
npx shadcn@latest add @tidal-pro/chat-threadImport components/ui/tidal.css, components/ui/chat-thread.css. Wrap installed components in tidal-scope.
Preview

Minimal example
import"./components/ui/tidal.css";
import"./components/ui/chat-thread.css";
import{TidalChatThread}from"./components/ui/chat-thread";
export default()=><div className="tidal-scope"><TidalChatThread label={"Demo"} messages={[{id:"example",author:"value",content:"value"}]}/></div>;API and props
TidalChatThread.label (required)stringRequired label value accepted by this exported component.
TidalChatThread.messages (required)ReadonlyArray<TidalChatMessage>Required messages value accepted by this exported component.
TidalChatThread.announceUpdatesboolean | undefinedOptional announce updates value accepted by this exported component.
TidalChatThread.emptyMessageReactNodeOptional empty message value accepted by this exported component.
TidalChatThread.followLatestboolean | undefinedOptional follow latest value accepted by this exported component.
TidalChatThread.initialScroll"start" | "end" | undefinedOptional initial scroll value accepted by this exported component.
TidalChatThread.maxHeightnumber | undefinedOptional max height value accepted by this exported component.
TidalChatThread.titleReactNodeOptional title value accepted by this exported component.
TidalChatThread.viewportPropsOmit<Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, "role" | "aria-atomic" | "aria-label" | "aria-live" | "aria-relevant" | "children"> | undefinedOptional viewport props value accepted by this exported component.
TidalChatThread.viewportRefRef<HTMLDivElement> | undefinedOptional viewport ref value accepted by this exported component.
Complete usage
Full example, stylesheet imports, API and accessibility documentation
Gotchas
- The host application owns data, validation, persistence, navigation, and service side effects described by this API.