BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/dedevs-ui/ai-conversation

ai-conversation

dedevs-ui/ai-conversation
FreeComponent

AI conversation container component

See it running

Open the demo on dedevs-ui

ui.dedevs.com/components/ai-conversation
Open
This registry sends X-Frame-Options, so its page cannot be embedded here. The link is the same page the frame would have shown.

Install it

npx shadcn@latest add https://ui.dedevs.com/r/ai-conversation.json

Source

packages/ai/conversation.tsxui.dedevs.com/r/ai-conversation.json
1'use client';
2
3import { Button } from '@repo/shadcn-ui/components/ui/button';
4import { ArrowDown } from 'lucide-react';
5import type { ComponentProps } from 'react';
6import { useCallback } from 'react';
7import { StickToBottom, useStickToBottomContext } from 'use-stick-to-bottom';
8import { cn } from '@repo/shadcn-ui/lib/utils';
9
10export type AIConversationProps = ComponentProps<typeof StickToBottom>;
11
12export const AIConversation = ({
13 className,
14 ...props
15}: AIConversationProps) => (
16 <StickToBottom
17 className={cn('relative flex-1 overflow-y-auto', className)}
18 initial="smooth"
19 resize="smooth"
20 role="log"
21 {...props}
22 />
23);
24
25export type AIConversationContentProps = ComponentProps<
26 typeof StickToBottom.Content
27>;
28
29export const AIConversationContent = ({
30 className,
31 ...props
32}: AIConversationContentProps) => (
33 <StickToBottom.Content className={cn('p-4', className)} {...props} />
34);
35
36export const AIConversationScrollButton = () => {
37 const { isAtBottom, scrollToBottom } = useStickToBottomContext();
38
39 const handleScrollToBottom = useCallback(() => {
40 scrollToBottom();
41 }, [scrollToBottom]);
42
43 return (
44 !isAtBottom && (
45 <Button
46 className="absolute bottom-4 left-[50%] translate-x-[-50%] rounded-full"
47 onClick={handleScrollToBottom}
48 size="icon"
49 type="button"
50 variant="outline"
51 >
52 <ArrowDown className="size-4" />
53 </Button>
54 )
55 );
56};

Files it writes

  • packages/ai/conversation.tsx

Facts

Registry
dedevs-ui
Type
registry:ui
Access
Free
Files written
1
Licence
MIT
First indexed
2026-08-01
Last confirmed
yesterday

Go to the source

Docs on dedevs-ui ui.dedevs.com DeDevsClub/dedevs-ui on GitHub Raw registry item This item as JSON

More from dedevs-ui

All 30 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
ai-branchai-branchdedevs-uiComponentsFreeno deps
ai-inputai-inputdedevs-uiComponentsFreeno deps
ai-messageai-messagededevs-uiComponentsFreeno deps
ai-reasoningai-reasoningdedevs-uiComponentsFreeno deps
ai-responseai-responsededevs-uiComponentsFreeno deps
ai-serverai-serverdedevs-uiComponentsFreeno deps
ai-simpleai-simplededevs-uiComponentsFreeno deps
ai-sourceai-sourcededevs-uiComponentsFreeno deps
BlockDex

Built by

Kynth Studio

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

BlockDex

BlockDex

Built by

Kynth Studio

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

BlockDex

BlockDex

Built by

Kynth Studio

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

BlockDex