Component packs › Tangram › Tangram Loader

Tangram Loader

The seven pieces keep rearranging into exact tangram figures, each lifted, turned and set down on its own spring.

Tangram Loader is a loader from Tangram, a component pack with 6 tangram controls: Seven tangram pieces that rearrange into every state of your interface. Price: $2 for the whole pack.

Built with: exact tilings, piece-by-piece springs, done() lands the square.

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.

Tangram Loader props

PropTypeDefaultDescription
labelstring
doneTextstring
figuresstring[]Figures to cycle through.
unitnumberPixels per square unit (the square is 4 units).
doneboolean
theme"light" | "dark"
autoplaynumber | falseKept for the showcase; the loader always cycles while loading.

Methods on the ref

Use it in React

import TangramLoader from './TangramLoader';

<TangramLoader />

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

More in Tangram

Good for: 404 and empty states.