BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/agent-elements/send-button

send-button

agent-elements/send-button
FreeComponent

agent-elements publishes no description for this item.

Live preview

live · rendered by the registry
Rendered by agent-elements on their own page — this is the component running, not a screenshot of it.

Install it

npx shadcn@latest add https://agent-elements.21st.dev/r/send-button.json

Source

registry/agent-elements/components/input/send-button.tsxagent-elements.21st.dev/r/send-button.json
1import { IconArrowUp, IconPlayerStopFilled } from "@tabler/icons-react";
2import { cn } from "../utils/cn";
3
4export type SendButtonProps = {
5 state: "idle" | "typing" | "streaming";
6};
7
8export function SendButton({ state }: SendButtonProps) {
9 const isStreaming = state === "streaming";
10 const isTyping = state === "typing";
11
12 if (isStreaming) {
13 return (
14 <div className="size-7 rounded-full bg-foreground flex items-center justify-center cursor-pointer">
15 <IconPlayerStopFilled className="size-4 text-background" />
16 </div>
17 );
18 }
19
20 return (
21 <div
22 className={cn(
23 "size-7 rounded-full flex items-center justify-center",
24 isTyping
25 ? "bg-an-send-button-bg cursor-pointer"
26 : "bg-muted cursor-default",
27 )}
28 >
29 <IconArrowUp
30 className={cn(
31 "size-4",
32 isTyping
33 ? "text-an-send-button-color"
34 : "text-neutral-400 dark:text-neutral-600",
35 )}
36 />
37 </div>
38 );
39}

Facts

Registry
agent-elements
Type
registry:ui
Access
Free
Files written
0
Licence
the repository states none
First indexed
2026-08-01
Last confirmed
yesterday

Go to the source

Docs on agent-elements agent-elements.21st.dev Raw registry item This item as JSON

More from agent-elements

All 25 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
agent-chatagent-chatagent-elementsComponentsFreeno deps
attachment-buttonattachment-buttonagent-elementsComponentsFreeno deps
bash-toolbash-toolagent-elementsComponentsFreeno deps
edit-tooledit-toolagent-elementsComponentsFreeno deps
error-messageerror-messageagent-elementsComponentsFreeno deps
file-attachmentfile-attachmentagent-elementsComponentsFreeno deps
generic-toolgeneric-toolagent-elementsComponentsFreeno deps
input-barinput-baragent-elementsComponentsFreeno 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