Skip to main content

Installation

Usage

Basic

Custom size

Examples

In buttons

Loading state

With text

Component source

API Reference

Accessibility

  • Uses role="status" for screen readers
  • Includes aria-label="Loading" to announce loading state
  • Automatically animates with animate-spin class

Notes

  • Built using Lucide React’s Loader2Icon
  • Default size is size-4 (16px)
  • Uses Tailwind’s animate-spin utility for rotation