Skip to content

Empty state

Pro

Fills a region with nothing to show: no posts yet, no results, coming soon, or couldn't load with a retry. Not an M3 component (@windmorph/react-pro).

import { EmptyState } from '@windmorph/react-pro';

Part of Windmorph Pro, paid components on the free core, not on sale yet. See the Pro guide for what it includes and to register interest.

Purpose

An empty state fills a region that has nothing to show, so it never looks blank or broken: no posts yet, no search results, a section that's coming soon, or a list that couldn't load. It says what's missing, why, and the next step. It is not an M3 component: M3 describes empty states as a pattern, and this one comes from @windmorph/react-pro, built from M3's type scale, container colour roles, shapes, motion tokens and the Card.

Use a Skeleton while content loads and its layout is known, a Snackbar for feedback about an action, and helper text for a form field's problem.

When not to use

While content loads, use a Skeleton; for feedback about an action, a Snackbar; for a form field, helper text.

See also

  • Card: A container for related content in three forms: static, pressable or a link.
  • Skeleton: A placeholder in the shape of loading content, pure CSS with pulse or shimmer. Not an M3 component (@windmorph/react-pro).
  • Snackbar: A brief message with an optional action and dismiss, queued through a host.