Loader
A loading component with multiple variants to indicate processing states and provide visual feedback to users during wait times.
Examples
Basic Loader
Showcasing all available loader variants with default settings.
Loading
circularLoading
Loading
pulseLoading
pulse-dotLoading
dotsLoading
typingLoading
waveLoading
bars>Loading
terminalThinking
text-blinkThinking
text-shimmerThinking...
loading-dotsLoader Sizes
Customize the size of any loader variant with predefined size options.
Loading
circularLoading
Loading
pulseLoading
pulse-dotLoading
dotsLoading
typingLoading
waveLoading
bars>Loading
terminalThinking
text-blinkThinking
text-shimmerThinking...
loading-dotsLoader With Text
Some loader variants support displaying custom text while loading.
Loading...
text-blinkLoading...
text-shimmerLoading......
loading-dotsInstallation
npx shadcn add "https://prompt-kit.com/c/loader.json"
Note: If you are using Tailwind CSS v4, you may have to grab the keyframes and add them to your global.css file manually. Check manual installation for more details.
Component API
Loader
Prop | Type | Default | Description |
---|---|---|---|
variant | "circular" | "classic" | "pulse" | "pulse-dot" | "dots" | "typing" | "wave" | "bars" | "terminal" | "text-blink" | "text-shimmer" | "loading-dots" | "circular" | The visual style of the loader |
size | "sm" | "md" | "lg" | "md" | The size of the loader |
text | string | Text to display (for supported variants) | |
className | string | Additional CSS classes |