Component packs › Tangram › Empty State
A loose pile of pieces is picked up one at a time and set into a sailboat, sail from one half of the square, hull from the other.
Empty State is an empty state 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: builds once in view, sailboat tiling, call to action.
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 |
|---|---|---|---|
title | string | ||
text | string | ||
action | string | ||
onAction | () => void | ||
figure | string | A tangram figure: boat, square, triangle, diamond, parallelogram, play. | |
theme | "light" | "dark" | ||
autoplay | number | false | Showcase mode: scatters and builds again every N ms while visible. |
replay(): void: Scatters the pieces and builds the figure again.destroy(): voidimport EmptyState from './EmptyState';
<EmptyState />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: 404 and empty states.