Loader
The Zenos animated SVG progress mark.
The Zenos animated SVG progress mark.
Import
Section titled “Import”import { Loader } from "@zentara-co/zenos-ui";Variants
Section titled “Variants”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.
Cross Expand
cross-expandDiagonal Scan
diagonal-scanColumn Scan
column-scanOrbit
orbitScan Line
scan-lineCipher
cipherPendulum
pendulumAperture
apertureStatic
staticUse 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.
<Loader variant="diagonal-scan" aria-label="Scanning workspace" /><Loader variant="cipher" aria-label="Decrypting export" />Size and color
Section titled “Size and color”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.
<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
| Prop | Type | Default | Description |
|---|---|---|---|
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-*.
Accessibility
Section titled “Accessibility”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.