Particle Morph Loader
A depth-lit swarm of motes spins in 3D and melts between sphere, ribbon, shell, tetra, ring and helix while a status word rolls underneath.
Try it: Watch the swarm morph; pick a shape or tint, or simulate done/error.
Installation
Install with the shadcn CLI:
npx shadcn@latest add https://www.framekitui.live/r/particle-morph-loader.jsonOr, with the @framekit namespace registered: npx shadcn@latest add @framekit/particle-morph-loader. You can also copy the source into components/ui/particle-morph-loader.tsx (view on GitHub).
Usage
import { ParticleMorphLoader } from '@/components/ui/particle-morph-loader'Props
| Prop | Type | Default | Notes |
|---|---|---|---|
shapes | ParticleShape[] | ['sphere','ribbon','shell','tetra','ring','helix'] | Forms to cycle; pass one to lock it. |
size | number | 180 | Canvas edge in px. |
color | string | '#a78bfa' | Particle tint (#rrggbb). |
labels | string[] | — | Status words, one per morph. |
speed / points | number | 1 / 320 | Cadence multiplier and particle count. |
state | 'loading' | 'done' | 'error' | 'loading' | Done condenses to mint; error scatters in rose. |
onRetry | () => void | — | Renders a retry pill in the error state. |
Dependencies
motionlucide-react
Related Loading components
- Lattice Pulse Loader
3×3 nodes pulse in a traveling wave.
- Ghost Gobbler Skull
A glossy vinyl-toy skull that tracks little black-smoke ghosts drifting in from every direction, drops its jaw, slurps each one in like spaghetti and CHOMPS — then levels up: glowing eyes, blush…
- Snake Loader
A progress loader whose visual is a tiny snake board. The snake plays itself while you wait, progress fills a row of tiles beneath it, and the status line carries the label, current step and…
- Liquid Charge Capsule
A glass capsule with a two-layer sloshing liquid that rises to the charge level. Colour warms from ember red to calm emerald as it fills, bubbles rise and pop while charging, a brushed-metal bolt…
- Login Gate Intro
A lock-screen preloader: oversized clock, generated avatar card, a password field that types itself, a three-step sign-in sequence, then the site fades up. Skip link included; reduced motion opens…
- Morph Glyph Loader
Glyph morphs through abstract SVG shapes.