ebnsina

Loading Spinner

Component

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 SpinnerLargeDemo() {
  return (
    <div className="flex items-center justify-center w-full h-40">
      <Spinner size={32} label="Loading" />
    </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