stackblitz-labs/use-stick-to-bottom

A lightweight React Hook intended mainly for AI chat applications, for smoothly sticking to bottom of messages

44
/ 100
Emerging

Implements velocity-based spring animations via `ResizeObserver` to detect content changes and maintain scroll position, distinguishing user scrolling from programmatic animations without debouncing. Works as a zero-dependency hook or component with context support, enabling child components to access `isAtBottom` state and trigger smooth scrolling—particularly useful when streaming variable-sized content in AI chat interfaces.

696 stars.

No Package No Dependents
Maintenance 10 / 25
Adoption 10 / 25
Maturity 9 / 25
Community 15 / 25

How are scores calculated?

Stars

696

Forks

47

Language

TypeScript

License

MIT

Last pushed

Feb 06, 2026

Commits (30d)

0

Get this data via API

curl "https://pt-edge.onrender.com/api/v1/quality/llm-tools/stackblitz-labs/use-stick-to-bottom"

Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.