Empty state

An empty state is a screen that is not yet populated with data or information. Empty states typically contain a short message and next steps for the user.

Examples

Basic

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

Empty state

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

Small

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

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

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.

With status

You're all set

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

Spinner

Loading

No match found

No results found

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

Props

EmptyState

*required
NameTypeDefaultDescription
titleTextrequiredReact.ReactNodeText of the title inside empty state header, will be wrapped in headingLevel
childrenReact.ReactNodeContent rendered inside the empty state
classNamestringAdditional classes added to the empty state
headerClassNamestringAdditional class names to apply to the empty state header
headingLevel'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6'The heading level to use, default is h1
iconReact.ComponentType<any>Empty state icon element to be rendered. Can also be a spinner component
isFullHeightbooleanCause component to consume the available height of its container
status'danger' | 'warning' | 'success' | 'info' | 'custom'Status of the empty state, will set a default status icon and color. Icon can be overwritten using the icon prop
titleClassNamestringAdditional classes added to the title inside empty state header
variant'xs' | 'sm' | 'lg' | 'xl' | 'full'EmptyStateVariant.fullModifies empty state max-width and sizes of icon, title and body

EmptyStateBody

*required
NameTypeDefaultDescription
childrenReact.ReactNodeContent rendered inside the empty state body
classNamestringAdditional classes added to the empty state body

EmptyStateFooter

*required
NameTypeDefaultDescription
childrenReact.ReactNodeContent rendered inside the empty state footer
classNamestringAdditional classes added to the empty state footer

EmptyStateActions

*required
NameTypeDefaultDescription
childrenReact.ReactNodeContent rendered inside the empty state actions
classNamestringAdditional classes added to the empty state actions

CSS variables

Expand or collapse columnSelectorVariableValue

View source on GitHub