React Gravity Scroll is a simple component and hook to keep your container anchored to the bottom.
Small and dependency free
SSR compatible
Headless
Simple and customizable
scrollThreshold:
Quick start
ReactGravityScroll ships with a pre-built GravityScrollArea component. You can easily use it in your project as follows:
Build your own GravityScroller
You can also use the useGravityScroll hook to build your own gravity scroller component. For example let's use Radix ScrollArea primitive component: