Loader
Loader offers visual variants and an accessible label, rather than a progress measurement.
Practical React example
Show that a specific part of the page is waiting for data.
Before you copy and paste
Keep the example in the React rendering environment required by the imported component. Copy components/motion/loader.tsx and its returned support files from the Code tab; preserve the project-relative paths.
Listed package dependencies: clsx, motion, react, tailwind-merge.
Use the Code tab for the component files and installation instructions, then adapt the imports in this example to your project.
Show that a specific part of the page is waiting for data
// Usage adapted from beUI's pinned MIT source.
// Copyright (c) 2026 Saurabh Chauhan. See ./LICENSES.md.
"use client";
import { Loader, type LoaderVariant } from "@/components/motion/loader";
const VARIANTS: { variant: LoaderVariant; label: string }[] = [
{ variant: "spinner", label: "Spinner" },
{ variant: "dots", label: "Dots" },
{ variant: "bars", label: "Bars" },
{ variant: "dot-matrix", label: "Dot Matrix" },
{ variant: "dither", label: "Dither" },
{ variant: "morph", label: "Morph" },
{ variant: "comet", label: "Comet" },
{ variant: "metaballs", label: "Metaballs" },
{ variant: "newton", label: "Newton" },
{ variant: "helix", label: "Helix" },
{ variant: "scramble", label: "Scramble" },
{ variant: "percent", label: "Percent" },
{ variant: "ascii", label: "ASCII" },
{ variant: "ascii-line", label: "ASCII Line" },
{ variant: "ascii-braille", label: "ASCII Braille" },
{ variant: "ascii-blocks", label: "ASCII Blocks" },
{ variant: "ascii-bounce", label: "ASCII Bounce" },
];
export function LoaderPreview() {
return (
<div className="flex flex-wrap items-center justify-center gap-8 p-8">
{VARIANTS.map(({ variant, label }) => (
<div key={variant} className="flex flex-col items-center gap-4">
<Loader variant={variant} size={36} />
<span className="text-xs text-muted-foreground">{label}</span>
</div>
))}
</div>
);
}
Usage example adapted from beUI's pinned MIT source. Retain the source licence notices when copying.
Mount it only while the relevant request is pending and use a label that names the work, such as Loading invoices. Keep useful existing content visible where possible.
Customization
- LoaderProps.variant
- Optional; LoaderVariant. Which animation to render.
- LoaderProps.size
- Optional; number. Base square size in px. Everything scales from this.
- LoaderProps.speed
- Optional; number. Seconds per animation cycle.
- LoaderProps.label
- Optional; string. Accessible label announced to screen readers.
- LoaderProps.className
- Optional; string.
- PartProps.size
- Required; number.
- PartProps.speed
- Required; number.
- PartProps.reduce
- Required; boolean.
Integration notes
- A spinner cannot communicate a known completion percentage; use a real progress value when available.
- Handle error and empty responses explicitly instead of leaving the loader running indefinitely.
Component source: beUI documentation . These examples describe the version imported into Rendyn. Upstream APIs may have changed; retain the source licence notices when adapting the code.
Give your agent taste.
The best way to use Rendyn is through MCP. Let your agent find the right component, compare previews and bring the source into your project.
All components are free. Sign up only to connect MCP.