Component packs › Ferro › Compass Loader

Compass Loader

The needle hunts round the dial while you wait; call done() and it swings to north, overshoots and locks with a ring of light.

Compass Loader is a loader from Ferro, a component pack with 7 components: Components that behave like magnets. Price: $5 for the whole pack.

Built with: searching spring, settle on done, live status.

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.

Compass Loader props

PropTypeDefaultDescription
labelstringText while loading.
doneLabelstringText once done.
sizenumber180Dial size in px. Default 180.
autoplaybooleanShowcase mode: loads, finds north, waits, repeats.

Methods on the ref

Use it in React

import CompassLoader from './CompassLoader';

<CompassLoader />

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

More in Ferro

Good for: Micro-interactions.