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 animatedbackgroundPosition — no keyframes or external CSS required.
Installation
components/rareui/LoadingSpinner.tsx into your project.
Usage
Props
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
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.