Component packs › Coil › Stair Loader

Stair Loader

A coil walks down an endless flight of stone steps: the top end arcs over, the rings pour after it, and the view follows.

Stair Loader is a loader from Coil, a component pack with 6 spring controls: Controls on real coil springs: they compress, stretch, overshoot and settle like wire does. Price: $2 for the whole pack.

Built with: slinky walk, endless stairs, ring by ring.

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.

Stair Loader props

PropTypeDefaultDescription
pacenumber0.95Seconds per step. Default 0.95.
labelstring"Loading"Accessible name. Default "Loading".

Methods on the ref

Use it in React

import StairLoader from './StairLoader';

<StairLoader />

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

More in Coil

Good for: Buttons.