Boxy Loader
A dynamic box-style loading screen where blocks stretch and shift positions, creating a smooth visual cue that content is being prepared in the background.
uiframer-motion
Installation
$npx futureuikit add boxy-shift
Import
import { BoxyShiftLoader } from "@/components/ui/boxy-shift-loader"
Layout Variant
Color Theme
Size
Shape
Named Keys & Props
Pass these exact named keys as props on <BoxyShiftLoader />. Click any color pill to copy the prop.
colorDefault is "default"(Black & White)variantVisual style"gradient""solid""outline"shapeCorner shape"default""square""rounded""sharp"sizeComponent size"sm""md""lg"Usage Example
A basic implementation example to get you started.
Example Implementation
import { BoxyShiftLoader } from"@/components/ui/boxy-shift-loader";
export default function Example() {
return (
<div className="flex flex-col gap-8">
<BoxyShiftLoader variant="gradient" color="default" size="md" shape="rounded"/>
<BoxyShiftLoader variant="solid" color="emerald" size="lg" shape="square"/>
<BoxyShiftLoader variant="outline" color="amber" size="sm" shape="sharp"/>
</div>
);
}Features
Key capabilities and highlights.
Key Capabilities
- ◆Shows boxes stretching and changing positions to indicate loading.
- ◆Supports 'gradient', 'solid', and 'outline' layout variants.
- ◆Offers 'sm', 'md', and 'lg' size modifiers.
- ◆Supports shape styling including 'square', 'rounded', 'sharp', and 'default'.
- ◆Full 10-color palette support via the color prop.
- ◆Smooth animation keeps users engaged during wait times.
Notes
Important implementation details to consider.
Implementation Details
- ◆Install: Run'npx futureuikit add boxy-shift'.
- ◆Import:'import { BoxyShiftLoader } from "@/components/ui/boxy-shift-loader";'
- ◆Variants: Pass'variant="gradient"' (default),'solid', or'outline'.
- ◆Size: Use the'size'prop ('sm','md','lg') to scale the component.
- ◆Shape: Use the'shape'prop ('square','rounded','sharp') to style the inner boxes.
- ◆Color: Choose from 10 theme colors (default, blue, emerald, rose, amber, violet, indigo, sky, slate, orange).