Component packs › Tangram › Empty State

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.

Empty State props

PropTypeDefaultDescription
titlestring
textstring
actionstring
onAction() => void
figurestringA tangram figure: boat, square, triangle, diamond, parallelogram, play.
theme"light" | "dark"
autoplaynumber | falseShowcase mode: scatters and builds again every N ms while visible.

Methods on the ref

Use it in React

import EmptyState from './EmptyState';

<EmptyState />

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

More in Tangram

Good for: 404 and empty states.