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/agent-chat

AgentChat

neon-ui/agent-chat
FreeComponent

Full agent chat pane: streamed markdown turns, tool chips, reasoning, and a composer with a model-controls slot.

Install it

npx shadcn@latest add https://ui.neon.com/r/agent-chat.json

Source

src/components/agent-chat/agent-chat.tsxui.neon.com/r/agent-chat.json · first 6 KB
1"use client";
2
3import {
4 ArrowRight01Icon,
5 Loading03Icon,
6 SentIcon,
7} from "@hugeicons/core-free-icons";
8import { HugeiconsIcon } from "@hugeicons/react";
9import type { ChatStatus, UIMessage } from "ai";
10import { domAnimation, LazyMotion, m, useReducedMotion } from "motion/react";
11import type {
12 ComponentProps,
13 FormEvent,
14 KeyboardEvent,
15 ReactNode,
16} from "react";
17import { useCallback, useRef, useState } from "react";
18import { Streamdown } from "streamdown";
19
20import { EmptyState } from "@/components/empty-state/empty-state";
21import { NeonMarkShimmer } from "@/components/neon-loader/neon-loader";
22import { ToolCallChip } from "@/components/tool-call-chip/tool-call-chip";
23import type { ToolCallState } from "@/components/tool-call-chip/tool-call-chip";
24import { Button } from "@/components/ui/button";
25import { Marker, MarkerContent } from "@/components/ui/marker";
26import {
27 MessageScroller,
28 MessageScrollerButton,
29 MessageScrollerContent,
30 MessageScrollerItem,
31 MessageScrollerProvider,
32 MessageScrollerViewport,
33} from "@/components/ui/message-scroller";
34import { cn } from "@/lib/utils";
35
36/* ─────────────────────────────────────────────────────────
37 * BLOCK STORYBOARD
38 *
39 * A full agent chat pane.
40 *
41 * entrance each new turn rises 8px on a quick spring
42 * rhythm a reply sits tight under its prompt; turns
43 * breathe with more air between exchanges
44 * streaming the scroller follows while pinned, backs off
45 * when the reader scrolls up, and offers a
46 * jump-to-latest button
47 * busy the Neon mark and status line shimmer in sync
48 * "Agent is working" until tokens arrive
49 * switches a user turn whose metadata carries a new
50 * model/effort gets a quiet "switched to"
51 * marker above it
52 * composer flush foot of the pane: textarea on top,
53 * model controls + send below, the top border
54 * warms to primary on focus
55 * ───────────────────────────────────────────────────────── */
56const TURN_SPRING = {
57 damping: 32,
58 stiffness: 420,
59 type: "spring" as const,
60};
61
62const TURN_RISE_PX = 8;
63
64/** Rises new turns in; static under reduced motion. */
65const TurnEntrance = ({ children }: { children: ReactNode }) => {
66// … truncated

What it pulls in

npm packages

  • ai
  • @ai-sdk/react
  • streamdown
  • @hugeicons/react
  • @hugeicons/core-free-icons
  • motion

Other registry items

  • utils
  • https://ui.neon.com/r/message.json
  • https://ui.neon.com/r/message-scroller.json
  • https://ui.neon.com/r/bubble.json
  • https://ui.neon.com/r/marker.json
  • https://ui.neon.com/r/button.json
  • https://ui.neon.com/r/tool-call-chip.json
  • https://ui.neon.com/r/neon-tokens.json
  • https://ui.neon.com/r/empty-state.json
  • https://ui.neon.com/r/neon-loader.json

Files it writes

  • src/components/agent-chat/agent-chat.tsx

Facts

Registry
neon-ui
Type
registry:component
Access
Free
Files written
1
Licence
MIT
In the index
at or before 2026-08-09
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
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
Badgebadgeneon-uiComponentsFree2 deps

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

KitGrade

SaaS starter kits, scored from measured facts

kitgrade.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 KitGrade

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 KitGrade

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 KitGrade

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