Empty State component setup

task brazil Updated Sep 10, 2026 3 min read empty-state-component-uib-setup.md
Raw file servicenow.com

The Empty State component lets a user know that an area of the experience is not populated with data. This template component displays a message containing an illustration, header, description, and button.

Before you begin

This task assumes you have placed the component on the page and are ready to configure the properties and events. For instructions on accessing and using features in UI Builder, see Customize UI Builder pages using components.

Note: This document describes the latest component functionality. Go to the store to make sure you have the latest version of the component.

Role required: admin or ui_builder_admin

Procedure

  1. Define a label for your Empty State that differentiates it from other components in the content tree.

    A label makes finding the component easier in a large list of components. For instructions on using the content tree, see Manage UI pages and page variants. For instructions on using the content tree, see the Customize UI pages using components.

    [Omitted image "empty-state-content-tree.png"] Alt text: Content tree showing custom name for an Empty State component.

  2. Select the Empty State component, using one of these methods:

    • Click anywhere within the component.
    • Select the Empty State label you created for your component in the content tree. The property fields appear in the Config tab in the setup panel on the right.

Parent Topic:UIB Setup Information

Empty State component properties

Configure the contents and appearance of your Empty State component with these properties.

To configure the properties, enter either static or dynamic input. Enter dynamic input by selecting the input type.

Field

Property

Description

Illustration

illustration

Name of the illustration to use.Default: no-search-results

Heading

heading

Primary text to display in the empty state messageType: {label: string, level: ("1" | "2" | "3" | "4" | "5" | "6")}

Default: {\"label\":\"No results found\",\"level\":\"3\"}

Content

content

Secondary text to display in the empty state messageType: string

Default: Please try your search again

Actions

actions

Array of button objects. The object keys are the same as the properties in the Button component.Choices:

  • label {string}: Required. Label describing the action.
  • icon {strring}: Icon displayed with the label
  • variant {string}: Button style variant
  • disabled {Boolean}: When true, mutes the button color and disables user click interactions.
  • tooltipContent {string}: Text to display in the optional tooltip associated with the button
  • configAria {object}: ARIA attributes to set on the action button
  • clickActionType {string}: Overrides the default action type dispatched when the user clicks the action button. Default: "NOW_TEMPLATE_MESSAGE_EMPTY_STATE#ACTION_CLICKED"

Alignment

alignment

Sets the alignmentChoices: vertical-centered or horizontal

Default: vertical-centered

## Empty State component events

Select event handlers to configure the actions (events) provided with the Empty State component.

The Events tab shows the events used by the Empty State component. To view the available events, select + Add event mapping. Select the event in the list to add one or more event handlers.

Event handlers

Event handlers work with data resources to link the Empty State actions to the data you want to display to your users. Select the event in the list to add one or more event handlers.

For instructions on adding event handlers to an event, see Configure an event handler.

Event descriptions

Event

Description

Template message empty state action clicked

Dispatched when the user clicks a button defined in the actions property. The payload includes a reference to the clicked action. You can override this action type by configuring the clickActionType property.Payload: {action: Object}

Search documentation
Search document titles and file paths on the brazil branch