BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/neon-ui/message-scroller

MessageScroller

neon-ui/message-scroller
FreeComponent

Chat scroll container with turn anchoring, auto-follow, and jump-to-latest.

Install it

npx shadcn@latest add https://ui.neon.com/r/message-scroller.json

Source

src/components/ui/message-scroller.tsxui.neon.com/r/message-scroller.json
1import * as React from "react"
2import {
3 MessageScroller as MessageScrollerPrimitive,
4 useMessageScroller,
5 useMessageScrollerScrollable,
6 useMessageScrollerVisibility,
7} from "@shadcn/react/message-scroller"
8
9import { cn } from "@/lib/utils"
10import { Button } from "@/components/ui/button"
11import { HugeiconsIcon } from "@hugeicons/react";
12import { ArrowDownIcon } from "@hugeicons/core-free-icons";
13
14function MessageScrollerProvider(
15 props: React.ComponentProps<typeof MessageScrollerPrimitive.Provider>
16) {
17 return <MessageScrollerPrimitive.Provider {...props} />
18}
19
20function MessageScroller({
21 className,
22 ...props
23}: React.ComponentProps<typeof MessageScrollerPrimitive.Root>) {
24 return (
25 <MessageScrollerPrimitive.Root
26 data-slot="message-scroller"
27 className={cn(
28 "group/message-scroller relative flex size-full min-h-0 flex-col overflow-hidden",
29 className
30 )}
31 {...props}
32 />
33 )
34}
35
36function MessageScrollerViewport({
37 className,
38 ...props
39}: React.ComponentProps<typeof MessageScrollerPrimitive.Viewport>) {
40 return (
41 <MessageScrollerPrimitive.Viewport
42 data-slot="message-scroller-viewport"
43 className={cn(
44 "size-full min-h-0 min-w-0 scroll-fade-b scrollbar-thin scrollbar-gutter-stable overflow-y-auto overscroll-contain contain-content data-autoscrolling:scrollbar-thumb-transparent data-autoscrolling:scrollbar-track-transparent",
45 className
46 )}
47 {...props}
48 />
49 )
50}
51
52function MessageScrollerContent({
53 className,
54 ...props
55}: React.ComponentProps<typeof MessageScrollerPrimitive.Content>) {
56 return (
57 <MessageScrollerPrimitive.Content
58 data-slot="message-scroller-content"
59 className={cn("flex h-max min-h-full flex-col gap-6", className)}
60 {...props}
61 />
62 )
63}
64
65function MessageScrollerItem({
66 className,
67 scrollAnchor = false,
68 ...props
69}: React.ComponentProps<typeof MessageScrollerPrimitive.Item>) {
70 return (
71 <MessageScrollerPrimitive.Item
72 data-slot="message-scroller-item"
73 scrollAnchor={scrollAnchor}
74 className={cn(
75 "min-w-0 shrink-0 [contain-intrinsic-size:auto_10rem] [content-visibility:auto]",
76 className
77 )}
78 {...props}
79 />
80 )
81}
82
83function MessageScrollerButton({
84 direction = "end",
85 className,
86 children,
87 render,
88 variant = "secondary",
89 size = "icon-sm",
90 ...props
91}: React.ComponentProps<typeof MessageScrollerPrimitive.Button> &
92// … truncated

What it pulls in

npm packages

  • @shadcn/react
  • @hugeicons/core-free-icons
  • @hugeicons/react

Other registry items

  • utils
  • https://ui.neon.com/r/neon-tokens.json
  • https://ui.neon.com/r/button.json

Files it writes

  • src/components/ui/message-scroller.tsx

Facts

Registry
neon-ui
Type
registry:ui
Access
Free
Files written
1
Licence
MIT
In the index
at or before 2026-08-13
Last confirmed
yesterday

Go to the source

ui.neon.com neondatabase/ui on GitHub Raw registry item This item as JSON

More from neon-ui

All 77 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
ActivityFeedactivity-feedneon-uiComponentsFree2 deps
AgentChatagent-chatneon-uiComponentsFree6 deps
AnimatedWashanimated-washneon-uiComponentsFreeno deps · 2 files
ApiKeyListapi-key-listneon-uiComponentsFree2 deps
AppCardapp-cardneon-uiComponentsFree2 deps
AppCreatorapp-creatorneon-uiComponentsFree2 deps
AuthFormauth-formneon-uiComponentsFreeno deps
AutoscaleChartautoscale-chartneon-uiComponentsFree1 dep

Also from Kynth Studios

Built for the same person as BlockDex

SkillWorks

Claude Code skills and plugins, scored

skillworks.kynth.studio

RuleStack

AGENTS.md gallery and agent-config comparison

rulestack.kynth.studio

ToolDrift

What the AI coding tools changed last night

tooldrift.kynth.studio

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex