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

    24
  • Video Player

    Video Player

    19
  • Alarm Clock

    Alarm Clock

    18
  • Voice Note

    Voice Note

    12
  • Split Button

    Split Button

    11
  • Sortable List

    Sortable List

    11
  • Stopwatch

    Stopwatch

    6
  • Code Block

    Code Block

    6

More in Text

View all
  • Vertical Cut Reveal Characters

    Vertical Cut Reveal Characters

    110
  • Motion Blur Text

    Motion Blur Text

    38
  • NeonRGBTextEffect

    NeonRGBTextEffect

    145
  • Rainbow Text Effect

    Rainbow Text Effect

    47
  • Aero Hero-3

    Aero Hero-3

    576
  • Highlight Text

    Highlight Text

    158
  • Vapour Text Effect

    Vapour Text Effect

    2K
  • Apple Hello Effect

    Apple Hello Effect

    620