Skip to main content

Overview

Loading Spinner pairs a continuously rotating SVG arc with a gradient-shimmer text label. The arc segment uses a blurred duplicate layer for a soft glow trail, and the text shimmer is driven by an animated backgroundPosition — no keyframes or external CSS required.

Installation

Or copy the component manually from components/rareui/LoadingSpinner.tsx into your project.

Usage

Props

string
Additional Tailwind or CSS classes applied to the outer container <div>. Use this to adjust spacing, scale the spinner, or override colors.

Examples

Default spinner

Larger size via className

Centered full-screen overlay

The spinner’s arc color is driven by Tailwind’s text-black dark:text-white utility on the SVG element. Override it with a custom className like text-blue-500 if you need a branded color.

Features

SVG Arc Spinner

A crisp, scalable vector arc rotates continuously at a 1-second linear duration.

Glow Trail Effect

A blurred duplicate of the arc arc layer sits behind the main stroke, creating a soft motion glow.

Shimmer Text

The “Loading…” label uses an animated gradient background-position sweep for a polished shimmer.

Dark Mode

Track ring, arc, and text colors all adapt automatically using Tailwind dark mode variants.

Zero Configuration

Works out of the box with a single import — no props required to get a fully animated spinner.

Lightweight

No additional dependencies beyond Framer Motion, which is already required by RareUI.