Skip to main content

Empty State

Empty states in an app occur when there is no data to be displayed to the user. Despite being challenging, these situations present excellent opportunities to communicate what the user would see with data and offer helpful advice on what to do next.

The empty state tells user what it is for and why they are seeing it. Effective empty states also tells user what to do next. The illustration that sits with an empty state informs the system state to the user.

An empty state can occur for following reasons:

  • There is no data for the user to see.
  • A feature has not been configured yet.

Types

An empty state can be dispalyed in two different levels.

  • Page level
  • Container level

Page level

Page level empty state occurs when a user first lands on a new page, or after they have deleted, or removed all the content from a page. The primary purpose of this empty state is to guide or suggest the user on what actions can be taken to populate the page.

Page level empty state

Container level

Using the default illustrations in multiple places only distracts the user from what needs to be done next. Use a container level empty state in such scenarios.

Container level empty states

Variants

Page level empty states used are when there are no data to be displayed in the entire page. Few scenarios to use such empty states are when the page is blank, or configuration is required.

When to use: When there are no search data present. Empty search

Guidance

When to use

  • Use an empty state when no content exists within a configured feature.
  • The message used should be consize informing the use why the state is being diaplayed.
  • Use a CTA button if an action can be performed within the page. This provides user the opportunity to act on how to reconsile the empty state.

Container level

  • Use spot illustrations that is relatable to the context to go with text and action item.
  • The spot illustration should be centered in the blob provided with horizontal padding of spacer-4.

Spot illustration specification

  • Use a secondary button sparingly to a reduce busy UI populated with primary button.
  • Depending upon the availability of the space and number of empty states that might occur, following variations of container level empty state can be used.
Container level Container level
Container level with spot and action itemContainer level without spot illustration
Container level Container level
Container level with icon and textContainer level with text only

Designer assets

figma
Hey Designers, please find the Figma assets here. If you want permission to access the file, please contact Experience Design CoP.

Developer API

Code

Empty state and error illustrations are specific to GEL only and is not available in PrimeVue.