Skip to content

Dot loaders

Playground

Loader

Colour

Install

npm install @shavin/ui
import { 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

beaded

orbiting, 96 dots

smooth

looping, 48 dots

beaded

looping, 140 dots

smooth

Props

PropTypeDefaultDescription
state"orbiting" | "looping""thinking"Which loader. Set it: without it Murmur plays its "thinking" AI state.
sizenumber24Width and height in px.
dotsnumberautoDot count. Low reads as beads, high as a smooth stroke. By default it scales with size (1.8 per px, 32 to 200).
dotSizenumber0.4Dot radius multiplier.
speednumber1Animation speed multiplier.
labelstringthe state nameAccessible name, e.g. "Loading". Pass "" to hide it when a visible label sits beside it.
classNamestring-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" />
Configure Theme
Theme
Brand Color
Custom
Gray Family
Appearance
Radius
Scaling
Panel Style
Heading Font
Body Font