Thread bump (Pro)
ProIncluded in $99A chat list that shows activity as movement: a thread with a new reply rises to the top.
On this page
ProA thread with a new reply rises to the top of the list, gliding past the ones it overtakes, and arrives lit with its unread dot.
When a thread gets a new reply it rises to the top, gliding past the threads it overtakes while they each step down one place, and arrives lit for a moment, its title heavier and its time in blue until it is read. Moves are animated from where each row was, so several bumps in a row never jump.
Installation
Needs chatcn Pro
This command works with a Pro license, along with every Pro component.
Or start free: sign up and get three Pro components on us, with a new one every month.
Usage
import { ThreadBump } from "@/components/ui/chatcn/pro/thread-bump"
<ThreadBump threads={byLatestActivity} activeId={current} onSelect={open} />Props
| Prop | Type | Notes |
|---|---|---|
threads | { id, title, preview?, time?, unread? }[] | Newest activity first |
activeId | string | |
onSelect | (id) => void |
Accessibility
- A list of buttons; the current thread has
aria-current; unread threads are labelled.
Motion
- Rows move from their old place: 520 ms for the one that rose, 380 ms for the rest. Reduced motion: they swap.