ebnsina

Loading Spinner

Text

About

A tiny circular loading indicator (an indeterminate ring built from a masked conic-gradient) that takes the surrounding text color, can carry an accessible label, and supports a delay so quick loads never flash it. Ported to React from the Sina UI (ebnsina) Svelte component.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Loading Spinner to your project and fits it to your theme.

Code

How Loading Spinner is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import Spinner from "@/components/ui/spinner";

export default function SpinnerWithTextDemo() {
  return (
    <div className="flex items-center justify-center w-full h-40">
      {/* Beside its own words, it's decoration: the text says what's happening. */}
      <p role="status" className="m-0 flex items-center gap-2 text-neutral-500">
        <Spinner /> Fetching manuscripts…
      </p>
    </div>
  );
}

More by ebnsina

View all
  • Countdown Timer

    Countdown Timer

    20
  • Video Player

    Video Player

    15
  • Alarm Clock

    Alarm Clock

    14
  • Voice Note

    Voice Note

    12
  • Split Button

    Split Button

    11
  • Sortable List

    Sortable List

    9
  • Stopwatch

    Stopwatch

    5
  • Code Block

    Code Block

    4

More in Text

View all
  • Vertical Cut Reveal Characters

    Vertical Cut Reveal Characters

    103
  • Motion Blur Text

    Motion Blur Text

    34
  • Rainbow Text Effect

    Rainbow Text Effect

    46
  • Text Reveal

    Text Reveal

    315
  • Blur Reveal

    Blur Reveal

    296
  • NeonRGBTextEffect

    NeonRGBTextEffect

    144
  • Shine Border

    Shine Border

    949
  • Glow

    Glow

    40