Component libraryChat thread
Components/Blocks

Chat thread

Pro

A message history that follows new replies while preserving your place in older messages.

npx shadcn@latest add @tidal-pro/chat-thread
Desktop viewport

Installation

Pro source is gated. Configure the @tidal-pro registry using the agent guide. Create an access key from your account after purchasing.

Terminal
npx shadcn@latest add @tidal-pro/chat-thread

Import components/ui/tidal.css, components/ui/chat-thread.css, then add the component inside a tidal-scope wrapper. Its scoped design tokens keep it independent of your existing CSS.

Usage

Complete example source · Dependency and asset manifest

Loading the complete example…

API & behavior

messages require unique ids, author names and consumer-owned ReactNode content. Optional outgoing style, avatar, timestamp/dateTime, deliveryText and actions per message. label names the scrollable log; optional title, emptyMessage, maxHeight (520px default), followLatest(defaulttrue), initialScroll(end default), announceUpdates(defaultfalse), viewportProps/ref, and native section attributes/ref. New messages follow only while already at the bottom; otherwise a jump-to-latest control shows a count. Stable visible-message anchoring preserves position through prepends and content resizing. Consumers own message generation, delivery, retry/copy actions, content safety and persistence. No request, transport or storage is implemented.

Style with the --t-* CSS variables. Set data-theme="dark" on your tidal-scope wrapper for a dark surface. Motion respects the system’s reduced-motion preference.

Building with an agent?Give it the installation guide and component catalog.