Hook
useAutoscroll
Pins a scroll container to the bottom as content arrives, unless the reader has scrolled up.
Install
npx shadcn@latest add https://ui.inflection.network/r/use-autoscroll.jsonUsage
Line 1
Line 2
Line 3
atBottom: true
Returns
| Name | Type | Description |
|---|---|---|
| deps | unknown[] | Re-check on these — message count, streaming text.Default: [] |