Scroll To Bottom Button
- from @localmode
- by LocalMode
A floating scroll-to-bottom affordance tied to a chat container's scroll state — appears when the user scrolls up, scrolls to and pins the latest content. Pairs with a ScrollAnchor pin element. Data source: useChat.
Install
New to shadcn? Set up your project
If your project already has a shadcn components.json, skip initialization. Otherwise, run this once from your project root.
pnpm dlx shadcn@latest initpnpm dlx shadcn@latest add @localmode/ui/conversation/scroll-to-bottom-buttonLive preview
No live preview has been built for this component yet.
Registry dependencies2
- @localmode/ui/lib/utils
- button
