Basic Loader
A modern, animated loading indicator with multiple visual styles built with Framer Motion. Supports Modern (Rings), Clean (Dots), and Minimal (Circle) variants with full color customization.
loaderframer-motion
Installation
$npx futureuikit add basic-loader
Import
import { BasicLoader } from "@/components/ui/basic-loader"
Layout Variant
Color Theme
Size
Named Keys & Props
Pass these exact named keys as props on <BasicLoader />. Click any color pill to copy the prop.
colorDefault is "default"(Black & White)customColor="#hex"variantVisual style"modern""clean""minimal"shapeCorner shape"default""square""rounded""sharp"sizeComponent size"sm""md""lg"Usage Example
A basic implementation example to get you started.
Example Implementation
import { BasicLoader } from"@/components/ui/basic-loader";
export default function Example() {
return (
<div className="flex flex-col gap-8">
<BasicLoader variant="modern" color="blue" size="lg" text="Modern Rings..."/>
<BasicLoader variant="clean" color="emerald" size="md" shape="square" text="Clean Dots..."/>
<BasicLoader variant="minimal" color="amber" size="sm" text="Minimalist..."/>
</div>
);
}Features
Key capabilities and highlights.
Key Capabilities
- ◆Built with Framer Motion for smooth, high-quality animations.
- ◆Three distinct variants: Modern (Rings), Clean (Dots), and Minimal (Circle).
- ◆Full 10-color palette support via the color prop.
- ◆Optional animated loading text with a pulse effect.
- ◆Customizable sizes (sm, md, lg) and shape variants specifically for the Clean loader.
Notes
Important implementation details to consider.
Implementation Details
- ◆Install: Run'npx futureuikit add basic-loader'.
- ◆Import:'import { BasicLoader } from "@/components/ui/basic-loader";'
- ◆Variants: Use'modern'for high-end cinematic rings,'clean'for minimal dots, or'minimal'for a simple pulse.
- ◆Size: Use the'size'prop (sm, md, lg) to scale the component.
- ◆Shape: Use the'shape'prop (square, rounded, sharp) to modify the dot shape when using the'clean'variant.
- ◆Color: Choose from 10 theme colors (default, blue, emerald, rose, amber, violet, indigo, sky, slate, orange).
- ◆Text: Provide a'text'prop to show a pulsing status message below the animation.