Component packs › Dune › Hourglass Loader

Hourglass Loader

Grains drain through the neck into a growing cone; when the top is empty the glass turns over and runs again.

Hourglass Loader is a loader from Dune, a component pack with 6 sand controls: Controls made of real sand: every grain falls, tumbles and piles up. Price: $2 for the whole pack.

Built with: grain-by-grain flow, flip with the grains, done check.

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.

Hourglass Loader props

PropTypeDefaultDescription
sizenumberScale factor. 1 = 56 × 92 px.
labelstringAccessible name.
runningbooleanStart finished (static).
onFlip() => void
autoplaynumber | falseShowcase mode: calls done() then restarts every N ms.

Methods on the ref

Use it in React

import HourglassLoader from './HourglassLoader';

<HourglassLoader />

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

More in Dune

Good for: Toggle switches, Loaders and progress, Physics UI components.