Component

Circular Spinner

Spinning ring loading indicator in four sizes (xs, sm, md, lg) and multiple colors, with an optional text label. Pure CSS animation via Tailwind's animate-spin — no JavaScript required.

  • Component
  • Tailwind
  • HTML
  • MIT

What it does

Capabilities

  • 4 sizes
  • Color variants
  • Optional label
  • Pure CSS animation
  • Role=status
  • Aria-live polite
  • Aria-hidden on decorative svg

Preview

Live component

Interactive preview
Open preview
9:41 100%
devsnips.site/library/tailwind/components/progress/circular-spinner/
fluid · no fixed width 100%
No dependencies Production-ready

Install

Add to your project

terminal
npx devsnips add Tailwind/Components/Progress/circular-spinner
registry path: Tailwind/Components/Progress/circular-spinner

Source

Implementation

code.html
<!--
Snippet Name: Circular Spinner
Description: Spinning ring loading indicator with three sizes and an optional label. Pure CSS animation, no JS.
Author: DevSnips Contributors
Usage Example: Drop inline where content is loading. Use the .spinner-ring class on an svg circle.
-->
<div class="flex flex-col items-center gap-3" role="status" aria-live="polite">
  <svg class="spinner-ring h-10 w-10 animate-spin text-blue-600" viewBox="0 0 24 24" fill="none" aria-hidden="true">
    <circle class="opacity-20" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="3"/>
    <path class="opacity-100" d="M22 12a10 10 0 00-10-10" stroke="currentColor" stroke-width="3" stroke-linecap="round"/>
  </svg>
  <span class="text-sm font-medium text-gray-500">Loading…</span>
</div>
13 lines UTF-8 · LF · Spaces: 2
DevSnips AI ready Claude · Cursor · Windsurf

Agent skill & Model Context Protocol

Pass this component straight into your AI workflow. DevSnips exposes each resource as a structured, addressable registry entry, so your agent installs the real files instead of approximating them.

devsnips://components/progress/circular-spinner
Prompt instruction
I want to use this DevSnips resource in production:

Page:
https://devsnips.site/library/tailwind/components/progress/circular-spinner/

Install: npx devsnips add
Tailwind/Components/Progress/circular-spinner

This is the Circular Spinner — Spinning ring loading indicator in four sizes (xs, sm, md, lg) and multiple colors, with an optional text label. Pure CSS animation via Tailwind's animate-spin — no JavaScript required.

Use this DevSnips resource as the starting point for my project.
Adapt it to my project's stack and conventions, fix any issues,
and make it production-ready while preserving its intended design
and behavior.

Paste into ChatGPT, Claude or your agent — it already carries the page URL and the exact install path.

Resource URI
devsnips://components/progress/circular-spinner