Tabs component setup

task brazil Updated Sep 10, 2026 5 min read tabs-uib-component-setup.md
Raw file servicenow.com

The Tabs component comprises a set of tabs, each displaying different components. Tabs can be arranged horizontally or vertically. This component was named Tab Set in versions prior to Tokyo.

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.

For instructions on overriding styles using the Styles pane, see Change the default appearance of components

Role required: admin or ui_builder_admin

Procedure

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

    A descriptive 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.

    [Omitted image "tabs-content-tree.png"] Alt text: Shows the Tabs component in the UI Builder content tree

  2. Select the Tabs component using one of these methods:

    • Click anywhere within the component on the page.
    • Select the label you created for your component in the content tree. The configuration options appear in the panel on the right.

    [Omitted image "tabs-properties.png"] Alt text: Shows the properties for the Tabs component in the Config panel

Parent Topic:UIB Setup Information

Tabs component properties

Configure the tabs displayed in your Tabs component.

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

Label [property]

Description

Tabs[items]

Area of the component that a user can configure like a page, by adding layout, components, and other elements for a specified tab. Contains the following fields [properties]:- Tab label [label]

Text label to be displayed in the tab body and/or provided to assistive technologies (required).

  • Icon [icon]

Name of icon name to display in the tab label.

  • Hide tab [conditional]

A value of 'true' hides the tab. You can bind this property to a client state parameter or write a script that would hide the tab only in certain conditions.

Default: false

Default tab[defaultRoute]

Statically sets the tab that is selected when the page loads.

Selected tab index[selectedTabIndex]

Dynamically sets the tab that is open by default when bound to data by string queries or data resources. To set the default tab statically, use defaultTabProperty​.

Label size[size]

Sets the size of the tab labels, Small (sm) or Medium (md).

Hide tab labels[hideLabel]

When enabled, hides the tab labels. This setting doesn't affect tab icons.Default value: false

Tab CSS styles[tabStyles]

Field for custom CSS to apply to the tab bar or the tab container. Use .tabset-tabs and .tabset-container classes to style these regions.Default value: .tabset-tabs{\n\n}\n.tabset-container{\n\n}

Tab position[position]

Sets the position of the tabs and determines if they display horizontally or vertically. The choices are:- Top: Displays the tabs horizontally at the top of the content

  • Start: Displays the tabs vertically at the beginning of the content
  • End: Displays the tabs vertically at the end of the content

Default value: Top

Note: Configuring vertical tabs displays additional properties.

Maximum width[maxWidth]

Maximum width (in pixels) of each tab. Text is truncated if it's longer than the tab width.Default value: 240

Span tabs[fixedWidth]

When enabled, horizontal tabs are spaced evenly (justified) in the available space. When disabled, the tabs adjust dynamically, based on the amount of available space. This property is available when the tab position is set to Top.Default value: false

Space between items[spaceBetweenItems]

Sets the space between the tabs: None, xxs, xs, sm, md, lg, xl, xxl, 3xl. This property is available when the tab position is set to Start or End).Default value: None

Allow user to collapse tabs[enableCollapsing]

When enabled, allows users to collapse the content in a selected tab by clicking the tab icon. This property is available when the tab position is set to Start or End).Default value: false

Collapse tabs by default[initiallyCollapsed]

When enabled, collapses all tab content when the page first loads. This property is available when the tab position is set to Start or End).Default value: false

Show inline padding[showInlinePadding]

When enabled, adds additional inline padding to vertical tab buttons. This property is available when the tab position is set to Start or End).Default value: false

## Tabs component events

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

The Events tab shows the events used by the Tabs 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 Tabs 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.

[Omitted image "tabs-events.png"] Alt text: Shows the available events for Tabs

Event descriptions

Event

Description

Tab item selected

Action that is fired when a tab is selected.Payload includes selectedTabIndex: Tab index identifying the route of the tab that was selected.

Tab collapsed

Action that is fired when a tab is collapsed.Payload includes collapsed: Flag indicating the collapsed state of the selected tab.

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