BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/spectrumui/thinking-dots

Thinking Dots

spectrumui/thinking-dots
FreeBlock

A minimal typing indicator — bouncing dots or a sliding bar.

Install it

npx shadcn@latest add https://ui.spectrumhq.in/r/thinking-dots.json

Source

components/spectrumui/blocks/ai-assistants/thinking-dots.tsxui.spectrumhq.in/r/thinking-dots.json
1'use client';
2
3import { cn } from '@/lib/utils';
4
5const KEYFRAMES = `
6@keyframes su-dot { 0%, 60%, 100% { opacity: 0.25; transform: translateY(0) } 30% { opacity: 1; transform: translateY(-2px) } }
7@keyframes su-bar-slide { 0% { transform: translateX(-100%) } 100% { transform: translateX(400%) } }
8`;
9
10export type ThinkingDotsVariant = 'Dots' | 'Bar';
11
12export interface ThinkingDotsProps {
13 label?: string;
14 variant?: ThinkingDotsVariant;
15 className?: string;
16}
17
18export function ThinkingDots({
19 label = 'Assistant is thinking',
20 variant = 'Dots',
21 className,
22}: ThinkingDotsProps) {
23 return (
24 <div
25 role="status"
26 aria-label={label}
27 className={cn(
28 'flex w-fit items-center gap-2.5 text-neutral-500 dark:text-neutral-400',
29 className,
30 )}
31 >
32 <style dangerouslySetInnerHTML={{ __html: KEYFRAMES }} />
33
34 {variant === 'Dots' ? (
35 <span aria-hidden className="flex items-center gap-1">
36 {[0, 1, 2].map((index) => (
37 <span
38 key={index}
39 className="size-1.5 rounded-full bg-current motion-reduce:!animate-none"
40 style={{ animation: `su-dot 1.2s ease-in-out ${index * 160}ms infinite` }}
41 />
42 ))}
43 </span>
44 ) : (
45 <span
46 aria-hidden
47 className="relative h-1 w-10 overflow-hidden rounded-full bg-black/[0.07] dark:bg-white/[0.09]"
48 >
49 <span
50 className="absolute inset-y-0 w-1/4 rounded-full bg-current motion-reduce:!animate-none"
51 style={{ animation: 'su-bar-slide 1.1s ease-in-out infinite' }}
52 />
53 </span>
54 )}
55
56 <span className="text-[12.5px]">{label}</span>
57 </div>
58 );
59}
60
61export default ThinkingDots;

Files it writes

  • components/spectrumui/blocks/ai-assistants/thinking-dots.tsx

Facts

Registry
spectrumui
Type
registry:block
Access
Free
Files written
1
Licence
Apache-2.0
First indexed
2026-08-02
Last confirmed
today

Go to the source

ui.spectrumhq.in arihantcodes/spectrum-ui on GitHub Raw registry item This item as JSON

More from spectrumui

All 182 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Agent Planagent-planspectrumuiBlocksFree1 dep
Agent Stepsagent-stepsspectrumuiBlocksFree1 dep · 2 files
Approval Cardapproval-cardspectrumuiBlocksFree1 dep
Chat Empty Statechat-empty-statespectrumuiBlocksFree1 dep · 2 files
Citation Sourcescitation-sourcesspectrumuiBlocksFreeno deps · 2 files
Code Blockcode-blockspectrumuiBlocksFree1 dep
Conversation Listconversation-listspectrumuiBlocksFree1 dep
Diff Viewdiff-viewspectrumuiBlocksFree1 dep
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