Free components for building your own support agent — bring any backend.Want the agent too? Inflection resolves support requests inside your app.

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.json

Usage

Line 1

Line 2

Line 3

atBottom: true

Returns

NameTypeDescription
depsunknown[]Re-check on these — message count, streaming text.Default: []