BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/prompt-kit/thinking-bar

Thinking Bar

prompt-kit/thinking-bar
FreeComponent

A component to display the thinking state of an AI model with optional actions.

Live preview

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

Install it

npx shadcn@latest add https://raw.githubusercontent.com/ibelick/prompt-kit/HEAD/public/c/thinking-bar.json

Source

thinking-bar.tsxraw.githubusercontent.com/ibelick/prompt-kit/HEAD/public/c/thinking-bar.json
1"use client"
2
3import { TextShimmer } from "@/components/prompt-kit/text-shimmer"
4import { cn } from "@/lib/utils"
5import { ChevronRight } from "lucide-react"
6
7type ThinkingBarProps = {
8 className?: string
9 text?: string
10 onStop?: () => void
11 stopLabel?: string
12 onClick?: () => void
13}
14
15export function ThinkingBar({
16 className,
17 text = "Thinking",
18 onStop,
19 stopLabel = "Answer now",
20 onClick,
21}: ThinkingBarProps) {
22 return (
23 <div className={cn("flex w-full items-center justify-between", className)}>
24 {onClick ? (
25 <button
26 type="button"
27 onClick={onClick}
28 className="flex items-center gap-1 text-sm transition-opacity hover:opacity-80"
29 >
30 <TextShimmer className="font-medium">{text}</TextShimmer>
31 <ChevronRight className="text-muted-foreground size-4" />
32 </button>
33 ) : (
34 <TextShimmer className="cursor-default font-medium">{text}</TextShimmer>
35 )}
36 {onStop ? (
37 <button
38 onClick={onStop}
39 type="button"
40 className="text-muted-foreground hover:text-foreground border-muted-foreground/50 hover:border-foreground border-b border-dotted text-sm transition-colors"
41 >
42 {stopLabel}
43 </button>
44 ) : null}
45 </div>
46 )
47}

What it pulls in

npm packages

  • lucide-react

Other registry items

  • text-shimmer

Files it writes

  • components/prompt-kit/thinking-bar.tsx

Facts

Registry
prompt-kit
Type
registry:ui
Access
Free
Files written
1
Licence
the repository states none
First indexed
2026-08-02
Last confirmed
today

Go to the source

Docs on prompt-kit prompt-kit.com ibelick/prompt-kit on GitHub Raw registry item This item as JSON

More from prompt-kit

All 23 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Chain Of Thoughtchain-of-thoughtprompt-kitComponentsFree1 dep
Chat Containerchat-containerprompt-kitComponentsFree1 dep
Code Blockcode-blockprompt-kitComponentsFree1 dep
Feedback Barfeedback-barprompt-kitComponentsFree1 dep
File Uploadfile-uploadprompt-kitComponentsFreeno deps
Imageimageprompt-kitComponentsFreeno deps
Jsx Previewjsx-previewprompt-kitComponentsFree1 dep
Loaderloaderprompt-kitComponentsFreeno 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