Skip to content
Playground

Loader

The Zenos animated SVG progress mark.

The Zenos animated SVG progress mark.

TSX
import { Loader } from "@zentara-co/zenos-ui";

All variants share the same 5×5 SVG grid and use per-dot timing maps. They inherit currentColor, require no runtime animation dependency, and settle into a calm static pattern when reduced motion is enabled.

Use the variant prop with semantic names: cross-expand (default), diagonal-scan, column-scan, orbit, scan-line, cipher, pendulum, aperture, and static. Several patterns are adapted from the MIT-licensed dot/matrix animation set.

TSX
<Loader variant="diagonal-scan" aria-label="Scanning workspace" /><Loader variant="cipher" aria-label="Decrypting export" />

Loader uses currentColor, so semantic text utilities control its tone. Its default size is 56px; use className for contextual sizing without changing the SVG view box.

TSX
<Loader className="size-6 text-text-subtle" aria-label="Saving" /><Loader className="size-10 text-primary" aria-label="Loading report" />

Variants

cross-expanddiagonal-scancolumn-scanorbitscan-linecipherpendulumaperturestatic

API

PropTypeDefaultDescription
variant LoaderVariant cross-expand Dot-matrix animation pattern.
aria-label string Loading Accessible name and SVG title for the current operation.
native props React.SVGProps<SVGSVGElement> — Forwards native attributes, events, aria-*, data-*, className, style, and ref.

Unless narrowed above, each DOM-rendering part also accepts its underlying native or Base UI props, including className, style, aria-*, and data-*.

Loader exposes an SVG image with a title derived from aria-label. Name the operation rather than the graphic—for example, “Saving changes” instead of “Animated dots.” For frequently updating status text, place Loader beside a separate live region; the animation itself does not announce progress. Every variant respects prefers-reduced-motion.