Component packs › Tangram › 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.
| Prop | Type | Default | Description |
|---|---|---|---|
label | string | ||
doneText | string | ||
figures | string[] | Figures to cycle through. | |
unit | number | Pixels per square unit (the square is 4 units). | |
done | boolean | ||
theme | "light" | "dark" | ||
autoplay | number | false | Kept for the showcase; the loader always cycles while loading. |
readonly loading: booleandone(): voidstart(): voiddestroy(): voidimport TangramLoader from './TangramLoader';
<TangramLoader />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: 404 and empty states.