API reference
components/loader
Import
Section titled “Import”import * as api from "@fungi.computer/caps/components/loader";Exports
Section titled “Exports”| 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”type LoaderVariant = "line" | "wander" | "square" | "donut" | "bloom";Fluid motion formations, sharing one material.
LoaderPropstype alias
Section titled “LoaderProps”type LoaderProps = object & HTMLAttributes<HTMLSpanElement>;Props accepted by Loader.
Type Declaration
Section titled “Type Declaration”| 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”const Loader: ForwardRefExoticComponent< object & HTMLAttributes<HTMLSpanElement> & RefAttributes<HTMLSpanElement>>;Connecting gooey beads, with a static silhouette for reduced motion.