Component packs › Windsock › Pinwheel Loader

Pinwheel Loader

A two-sided paper pinwheel spins faster and slower in the gusts, each sail catching the light, and coasts to a stop when done.

Pinwheel Loader is a loader from Windsock, a component pack with 6 wind controls: Controls moved by the wind: flags that fly, a windsock that fills, a vane that swings round. Price: $2 for the whole pack.

Built with: gust-driven spin, two-sided paper, coast to stop.

Code: React and Next.js (TypeScript), Vue 3, plain HTML/CSS/JS, Tailwind CSS v4 and Motion (motion.dev). No npm packages needed. Keyboard accessible, with a reduced-motion version, in dark and light.

Pinwheel Loader props

PropTypeDefaultDescription
loadingboolean
labelstring
doneTextstring
darkboolean
autoplaynumber | falseShowcase mode: finishes and restarts every N ms while visible.

Methods on the ref

Use it in React

import PinwheelLoader from './PinwheelLoader';

<PinwheelLoader />

The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.

More in Windsock

Good for: Notifications and toasts.