Spinner
A loading spinner component using Lucide's Loader2 icon.
Preview
Installation
Usage
Examples
Custom Size
Custom Color
In Button
API Reference
| Prop | Type | Default | Description |
|---|---|---|---|
className | string | - | Additional CSS classes for custom styling |
| All SVG props | - | - | Accepts all standard SVG element props |
Accessibility
- The spinner includes
role="status"for screen readers - Includes
aria-label="Loading"to describe the loading state