Hooks & Utilities
v1.0.0Added in 1.0.0
Keeps a chat, a log or streaming output pinned to its bottom while it grows, and lets go the moment the reader scrolls up.
The demo plays a conversation whose answers stream in word by word, and the panel follows them down. Scroll up with the wheel, a finger or the keys while an answer is still arriving: following stops at once (isFollowing turns off), the text keeps growing below and a New messages button appears. Tap it, or scroll back to the end, and it follows again. Pause stops the script.
npx wingo-ui@latest add use-stick-to-bottomPro item: the CLI needs a Pro account. See plans
Scroll up while an answer streams: it lets go. Scroll back down and it follows again.