BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/shadcn-extras/radial-dots-spinner

Radial Dots Spinner

shadcn-extras/radial-dots-spinner
FreeComponent

Animated dotted spinner (SVG). Customizable spokes, rings, size and speed.

Install it

npx shadcn@latest add https://raw.githubusercontent.com/NayanDevLab/shadcn-extras/dev/public/c/radial-dots-spinner.json

Source

radial-dots-spinner.tsxraw.githubusercontent.com/NayanDevLab/shadcn-extras/dev/public/c/radial-dots-spinner.json
1'use client';
2
3import * as React from 'react';
4import { cn } from '@/lib/utils';
5
6export type RadialDotsSpinnerProps = {
7 /** Overall square size (px) */
8 size?: number;
9 /** Number of radial spokes */
10 spokes?: number;
11 /** Dots per spoke (excluding center rings) */
12 dotsPerSpoke?: number;
13 /** Inner radius where spokes start (px) */
14 innerRadius?: number;
15 /** Outer radius (px). Default: size/2 - 6 */
16 outerRadius?: number;
17 /** Dot radius across spokes. Either fixed number or { inner, outer } to taper. */
18 dotRadius?: number | { inner: number; outer: number };
19 /** How many dotted rings around the center (0–3 works well) */
20 centerRings?: number;
21 /** Radius of the first ring (px) */
22 centerRingRadius?: number;
23 /** Gap between center rings (px) */
24 centerRingGap?: number;
25 /** Dots on each center ring */
26 centerRingDots?: number;
27 /** Seconds per full rotation (set 0 or falsey to disable spin) */
28 speed?: number;
29 /** Extra classes (use to set color: text-white, text-zinc-900, etc.) */
30 className?: string;
31 /** Extra classes applied to each dot (e.g. drop-shadow) */
32 dotClassName?: string;
33 /** Accessible label */
34 label?: string;
35};
36
37function lerp(a: number, b: number, t: number) {
38 return a + (b - a) * t;
39}
40
41export function RadialDotsSpinner({
42 size = 160,
43 spokes = 12,
44 dotsPerSpoke = 10,
45 innerRadius = 14,
46 outerRadius,
47 dotRadius = { inner: 2, outer: 3.5 },
48 centerRings = 2,
49 centerRingRadius = 10,
50 centerRingGap = 6,
51 centerRingDots = 16,
52 speed = 1.6,
53 className,
54 dotClassName,
55 label = 'Loading…',
56}: RadialDotsSpinnerProps) {
57 const w = size;
58 const h = size;
59 const cx = w / 2;
60 const cy = h / 2;
61 const R = outerRadius ?? Math.floor(size / 2) - 6;
62 const step = dotsPerSpoke > 1 ? (R - innerRadius) / (dotsPerSpoke - 1) : 0;
63
64 const getDotR = (idx: number) => {
65 if (typeof dotRadius === 'number') return dotRadius;
66 const t = dotsPerSpoke <= 1 ? 0 : idx / (dotsPerSpoke - 1);
67 return lerp(dotRadius.inner, dotRadius.outer, t);
68 };
69
70 // build center rings (array of arrays of points)
71 const rings = Array.from({ length: Math.max(0, centerRings) }, (_, r) => {
72 const radius = centerRingRadius + r * centerRingGap;
73 return Array.from({ length: centerRingDots }, (_, i) => {
74 const a = (i / centerRingDots) * Math.PI * 2;
75 return {
76 x: cx + Math.cos(a) * radius,
77 y: cy + Math.sin(a) * radius,
78 };
79 });
80 });
81
82// … truncated

Files it writes

  • \components\core\radial-dots-spinner.tsx

Facts

Registry
shadcn-extras
Type
registry:ui
Access
Free
Files written
1
Licence
MIT
In the index
at or before 2026-08-12
Last confirmed
today

Go to the source

nayanrdeveloper.github.io NayanDevLab/shadcn-extras on GitHub Raw registry item This item as JSON

More from shadcn-extras

All 33 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Animated Image Gridanimated-image-gridshadcn-extrasComponentsFreeno deps · 3 files
Blog Card Fourblog-card-fourshadcn-extrasComponentsFree1 dep
Blog Card Oneblog-card-oneshadcn-extrasComponentsFreeno deps
Blog Card Threeblog-card-threeshadcn-extrasComponentsFree1 dep
Blog Card Twoblog-card-twoshadcn-extrasComponentsFree1 dep
Bulb Iconbulb-iconshadcn-extrasComponentsFree2 deps
Chevron Stepschevron-stepsshadcn-extrasComponentsFreeno deps
Circular Gallerycircular-galleryshadcn-extrasComponentsFreeno deps · 3 files

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