Skip to main content
The Loader component displays an animated spinning indicator for loading states.

Preview

Usage

Attributes

The loader accepts standard HTML attributes that are merged with Tailwind classes:
class
string
default:"size-5 animate-spin"
CSS classes to customize size and animation. Common sizes: size-4, size-5, size-6.

Examples

Different Sizes

With Color

In a Button

Loading State

Blade Component Source