Skip to content
API reference

components/loader

Import
import * as api from "@fungi.computer/caps/components/loader";
Kind Export Description
type alias LoaderVariant Fluid motion formations, sharing one material.
type alias LoaderProps Props accepted by Loader.
constant Loader Connecting gooey beads, with a static silhouette for reduced motion.

LoaderVarianttype alias

Section titled “LoaderVariant”
Signature
type LoaderVariant = "line" | "wander" | "square" | "donut" | "bloom";

Fluid motion formations, sharing one material.


LoaderPropstype alias

Section titled “LoaderProps”
Signature
type LoaderProps = object & HTMLAttributes<HTMLSpanElement>;

Props accepted by Loader.

Name Type Description
decorative? boolean -
label? ReactNode -
size? "sm" | "md" | "lg" | "fill" fill grows the formation to its container, as a full-tile placeholder.
variant? LoaderVariant -
tone? "neutral" | "accent" | "primary" | "success" -

Loaderconstant

Section titled “Loader”
Signature
const Loader: ForwardRefExoticComponent<
object & HTMLAttributes<HTMLSpanElement> & RefAttributes<HTMLSpanElement>
>;

Connecting gooey beads, with a static silhouette for reduced motion.