Live demo — this example is server-driven; run the showcase locally for the interactive version.

Empty state

What to show when there's nothing to show — an icon, a headline, an explanation, and a primary action. Used for fresh-account pages, empty filters, and "no results" screens.

Examples

Basic

Icon + title + body + primary action — the standard "first-time experience" pattern.

Empty state

This represents the empty state pattern in PatternFly. Hopefully it's simple enough to use but flexible enough to meet a variety of needs.

Extra small

pf-m-xs — the most compact size; a single row of small link actions.

Empty state

This represents the empty state pattern in PatternFly. The icon is optional.

Small

pf-m-sm — a compact empty state with a primary action and a row of links.

Empty state

This represents the empty state pattern in PatternFly. Hopefully it's simple enough to use but flexible enough to meet a variety of needs.

Large

pf-m-lg — a roomier empty state for full-page use.

Empty state

This represents the empty state pattern in PatternFly. Hopefully it's simple enough to use but flexible enough to meet a variety of needs.

Extra large

pf-m-xl — the largest size, for dedicated empty-state pages.

Empty state

This represents the empty state pattern in PatternFly. Hopefully it's simple enough to use but flexible enough to meet a variety of needs.

Success

pf-m-success — a status empty state: a success icon and a confirming headline.

You're all set

This represents the empty state pattern in PatternFly. Hopefully it's simple enough to use but flexible enough to meet a variety of needs.

With status

The Toggle status button cycles the empty state through success, danger, warning, info and custom status treatments.

You're all set

This represents the empty state pattern in PatternFly. Hopefully it's simple enough to use but flexible enough to meet a variety of needs.

You're not set

This represents the empty state pattern in PatternFly. Hopefully it's simple enough to use but flexible enough to meet a variety of needs.

You're probably not set

This represents the empty state pattern in PatternFly. Hopefully it's simple enough to use but flexible enough to meet a variety of needs.

You might be set

This represents the empty state pattern in PatternFly. Hopefully it's simple enough to use but flexible enough to meet a variety of needs.

You're custom

This represents the empty state pattern in PatternFly. Hopefully it's simple enough to use but flexible enough to meet a variety of needs.

Spinner

A loading state — set customIcon=true and fill the {#icon} slot with a Spinner instead of an icon. No body or actions.

Loading

No match found

The classic "no search results" state — a search icon, a no-results headline, and a single Clear all filters link action.

No results found

No results match the filter criteria. Clear all filters and try again.

No icon

Omit iconName for a leaner look — best for "no results" states.

Nothing matches your search

Try adjusting the filters or searching for different keywords.

With actions

Set hasActions=true and fill the {#actions} slot with one or more pf-v6-c-empty-state__actions groups composing Button components. (PF's default example uses two: a primary action, then a row of links — see Basic.) The empty state doesn't hardcode buttons; you compose them.

Empty workspace

You haven't created any documents yet.

Documentation

Empty state props

Parameters accepted by {#include components/feedback/empty-state ... /}. Model mode: pass emptyState=<EmptyState> built in Java instead — the Java tab on each example shows the builder.

* required
Name Type Description
id String DOM id on the root; omit unless referenced.
* titleText String Main headline.
bodyText String Supporting paragraph.
iconName String (icon resolver) Large illustrative icon at the top.
customIcon + {#icon} boolean + Slot Set customIcon=true and fill the {#icon} slot to put a component in the icon area (e.g. a Spinner for a loading state) instead of an icon. Overrides iconName.
size xs | sm | lg | xl Emits pf-m-{size} on the root.
status danger | warning | success | info Emits pf-m-{status}; colors the icon.
hasActions + {#actions} boolean + Slot Set hasActions=true and fill the {#actions} slot to render the footer. Provide one or more pf-v6-c-empty-state__actions groups (PF's EmptyStateActions), each composing Button components. Omit both for an action-less empty state.

Usage

Always give them somewhere to go. An empty state without a primary action is a dead end. Even "no results" states should suggest a next step (clear filters, refine search).

Pair with Bullseye. Empty state inside a sized container + Bullseye = perfectly centered.