BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/simple-ai/chat-message-area-demo-streaming

chat-message-area-demo-streaming

simple-ai/chat-message-area-demo-streaming
FreeExample

simple-ai publishes no description for this item.

Install it

npx shadcn@latest add https://simple-ai.dev/r/chat-message-area-demo-streaming.json

Source

./src/registry/examples/chat-message-area-demo-streaming.tsxsimple-ai.dev/r/chat-message-area-demo-streaming.json · first 6 KB
1"use client";
2
3import type { UIMessage } from "@ai-sdk/react";
4import { useEffect, useState } from "react";
5import { Button } from "@/components/ui/button";
6import {
7 ChatMessage,
8 ChatMessageAuthor,
9 ChatMessageAvatar,
10 ChatMessageAvatarFallback,
11 ChatMessageAvatarImage,
12 ChatMessageContainer,
13 ChatMessageContent,
14 ChatMessageHeader,
15 ChatMessageMarkdown,
16 ChatMessageTimestamp,
17} from "@/registry/ui/chat-message";
18import {
19 ChatMessageArea,
20 ChatMessageAreaContent,
21 ChatMessageAreaScrollButton,
22} from "@/registry/ui/chat-message-area";
23
24const userMessage: UIMessage<{
25 member: {
26 image: string;
27 name: string;
28 };
29}> = {
30 id: "1",
31 parts: [
32 {
33 type: "text",
34 text: "Can you tell me a magical story?",
35 },
36 ],
37 role: "user",
38 metadata: {
39 member: {
40 image: "/avatar-1.png",
41 name: "You",
42 },
43 },
44};
45
46const STORY = `# The Tale of the Enchanted Forest
47
48Deep in a mystical realm, there lay an ancient forest that held secrets beyond imagination. The trees here weren't mere plants; they were the keepers of ancient wisdom, their leaves whispering tales of ages past.
49
50## The Guardian's Call
51
52In this magical place lived a young spirit named Aria, chosen by the forest itself to be its guardian. Her hair flowed like silver moonlight, and her eyes held the depth of ancient pools.
53
54### The First Challenge
55
56* One morning, Aria discovered that something was amiss
57* The usually vibrant crystal flowers had begun to fade
58* The ancient whispers of the trees grew fainter
59* A shadow crept through the undergrowth
60
61## The Journey Begins
62
63Aria knew she had to act quickly. She gathered:
641. Dewdrops from spider webs at dawn
652. Starlight captured in moonflower petals
663. Songs of the morning birds
674. Tears of the evening mist
68
69> "In the heart of every forest lies a truth waiting to be discovered" - Ancient Forest Proverb
70
71### The Discovery
72
73As Aria ventured deeper into the forest's heart, she found an ancient clearing. Here, the very air seemed to pulse with magic. Crystal formations emerged from the earth like frozen rainbows, each one containing memories of the forest's past.
74
75## The Ancient Guardians
76
77In her quest, Aria encountered the spirits of previous guardians:
78
79* The Flame Keeper, whose torch lit the darkest paths
80* The Wind Whisperer, who knew the language of storms
81* The Earth Mother, who could heal the land with a touch
82* The Star Walker, who mapped the celestial dance
83
84Each spirit shared their wisdom:
85
861. "Change is the only constant in nature"
87// … truncated

Files it writes

  • ./src/registry/examples/chat-message-area-demo-streaming.tsx

Facts

Registry
simple-ai
Type
registry:example
Access
Free
Files written
1
Licence
the repository states none
In the index
at or before 2026-08-13
Last confirmed
today

Go to the source

Docs on simple-ai simple-ai.dev Raw registry item This item as JSON

More from simple-ai

All 77 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
chat-input-demo-mentionschat-input-demo-mentionssimple-aiExamplesFreeno deps
chat-input-demo-simplechat-input-demo-simplesimple-aiExamplesFreeno deps
chat-input-with-addonschat-input-with-addonssimple-aiExamplesFreeno deps
chat-message-area-demochat-message-area-demosimple-aiExamplesFreeno deps
chat-message-area-demo-alignmentchat-message-area-demo-alignmentsimple-aiExamplesFreeno deps
chat-message-demochat-message-demosimple-aiExamplesFreeno deps
chat-message-demo-avatar-imagechat-message-demo-avatar-imagesimple-aiExamplesFreeno deps
chat-message-demo-simplechat-message-demo-simplesimple-aiExamplesFreeno 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

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