KQ-893 · JUMP/LATEST

Jump Latest

The way back down. While the thread sits at its floor nothing shows; scroll up past revealDistance and a pill rises from the box's bottom edge on snap, counting the messages that landed while you were away with digits that roll on snap. Pressing it, or pressing End inside the thread, animates scrollTop to the floor on glide with every frame rounded, and the slide stops on unmount, on a new press, and when the document is hidden.

KQ-893 · JUMP/LATEST
  1. Rui Baptista, 01:40.Yard gate is shut. Dock two has the run.
  2. Ines Moreau, 01:44.Keys back on the hook?
  3. Rui Baptista, 01:45.On the hook, both sets.
  4. Ines Moreau, 01:52.Good. Pallet 4471 still held?
  5. Rui Baptista, 01:58.Held. Waylight Pay has not cleared it.
  6. Marta Ferreira, 02:05.I have the paperwork here.
  7. Ines Moreau, 02:07.Leave it under the sheet.
  8. Marta Ferreira, 02:09.Done. Loader is booked until half past.
  9. Rui Baptista, 02:16.Dock three frees up at nine.
  10. Ines Moreau, 02:18.Take it if the yard needs it.
  11. Marta Ferreira, 02:24.Basinworks crates are labelled.
  12. Rui Baptista, 02:31.Handover sheet is on the desk.

at the latest · 12 messages

Install

One command — the source lands in your repo. Or copy it from the Code tab.

$ pnpm dlx shadcn@latest add @kinetiq/jump-latest

Props

messages
JumpMessage[]
default
The thread, oldest first: id, author, text, a preformatted time and an own flag.
onJump
() => void
default
Fires when a jump starts, from the pill or from End.
onNewCountChange
(count: number) => void
default
Fires when the count of messages that arrived while you were away changes.
onAtBottomChange
(atBottom: boolean) => void
default
Fires as the box reaches or leaves its floor.
onAnnounce
(sentence: string) => void
default
Fires once per frozen change sentence, for a parent's own status line.
label
string
default
Names the thread for assistive technology.
jumpLabel
string
default "Latest"
The pill's word when nothing new has arrived.
revealDistance
number
default 48
Pixels above the floor before the pill rises.
maxHeight
number
default 260
Tallest the thread grows before it scrolls inside its own box.