Skip to main content
The Spinner Loader is a clean, minimal loading animation featuring a circular border with only the bottom section visible, creating a smooth rotating effect. This is a lightweight alternative to the Classic loader, perfect for simple loading states.

Installation

Usage

Props

The Spinner component does not accept any props. It includes built-in screen reader support with an sr-only loading message.

Animation Details

  • Size: 40px × 40px (10 × 10 in Tailwind)
  • Border: 2px bottom border only
  • Animation: Continuous 360-degree rotation using Tailwind’s animate-spin
  • Color: Black in light mode, white in dark mode
  • Accessibility: Includes “Loading…” text for screen readers

Examples

Loading Button

Card Loading State

Conditional Content

Overlay Loader

Full Page Loading