Dot loaders
Playground
Loader
Colour
Install
npm install @shavin/uiimport { Murmur } from "@shavin/ui";Works with
React
Client component; Next.js and any React 18+ app
Remotion
Loaders animate on Murmur's own loop, so they are for live pages; they do not follow FxTimeProvider yet.
Beaded or smooth
There are two loaders; the look comes from the dot count. Few dots read as separate beads; many dots overlap into a smooth stroke. Pick the count for the size: around 20 at 24px for beads, 90 or more at 96px for a stroke.
orbiting, 20 dots
beadedorbiting, 96 dots
smoothlooping, 48 dots
beadedlooping, 140 dots
smoothProps
| Prop | Type | Default | Description |
|---|---|---|---|
| state | "orbiting" | "looping" | "thinking" | Which loader. Set it: without it Murmur plays its "thinking" AI state. |
| size | number | 24 | Width and height in px. |
| dots | number | auto | Dot count. Low reads as beads, high as a smooth stroke. By default it scales with size (1.8 per px, 32 to 200). |
| dotSize | number | 0.4 | Dot radius multiplier. |
| speed | number | 1 | Animation speed multiplier. |
| label | string | the state name | Accessible name, e.g. "Loading". Pass "" to hide it when a visible label sits beside it. |
| className | string | - | Colour via a text colour class, e.g. text-success; the dots use currentColor, text-brand-contrast by default. |
Loaders are Murmur states; the full component is documented on the Murmur component page, and the AI states on Murmur (fx).
Anatomy
import { Murmur } from "@shavin/ui";
<Murmur state="orbiting" size={20} dots={18} label="Loading" />
<Murmur state="looping" size={32} dots={48} label="Loading" />