Button component setup
The Button component is a selectable input containing a text label and an optional icon that enables users to trigger an action. The default configuration for a button is plain text within a container, which can have different styles based on the variant you choose.
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
-
Define a label for your button 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.
[Omitted image "button-config-content-tree.png"] Alt text: Component with label displayed in the content tree
-
Select the button component, using one of these methods:
- Click anywhere within the component.
- Select the button 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
Button component properties
Configure the appearance and features of the Button component.
To configure the properties, enter either static or dynamic input. Enter dynamic input by selecting the input type.
- Data binding: Creates dynamic property values from multiple sources. Sources include state variables (@state), URL variables (@context), or data resource payloads (@data). For details, see Add and configure data resources to a page.
- Scripting: Creates a scripted property value. For details on scripted values, see Create and bind a client state parameter to a component.
|
Label [property] |
Description |
|---|---|
|
Label[label] |
Inner label of the button. |
|
Variant[variant] |
Color and behavior of the button. |
|
Size[size] |
Size of the button. |
|
Disabled[disabled] |
Option to disable the component. When this property is set to true, the button color is muted and user interaction is unavailable.Default: false |
|
Icon[icon] |
Icon to display inside the button. |
|
Animated icon[animatedIcon] |
Animated icon to display inside the button. |
|
Tooltip label[tooltipContent] |
Text that is displayed when hovering either of the buttons. |
|
ARIA properties[configAria] |
An object whose keys reference a specific HTML element within the dropdown. The value of each key is an object that contains an ARIA property and corresponding value. These ARIA properties are set on the specified element. |
Select event handlers to configure the actions (events) provided with the Button component.
The Events tab shows the events used by the Button 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 Button 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 | Description |
|---|---|
| Button clicked | Dispatched when the user interacts with the button. |
---
title: Button component setup
description: The Button component is a selectable input containing a text label and an optional icon that enables users to trigger an action. The default configuration for a button is plain text within a container, which can have different styles based on the variant you choose.Configure the appearance and features of the Button component.Select event handlers to configure the actions \(events\) provided with the Button component.
locale: en-US
canonical_url: https://www.servicenow.com/docs/r/application-development/ui-builder/button-component-uib-setup.html
release: brazil
product: UI Builder
classification: ui-builder
topic_type: task
last_updated: "2026-09-10"
reading_time_minutes: 3
breadcrumb: [UIB Setup Information, UI Builder, Builder library, Developing your application, Classic app development, Building applications]
---
# Button component setup
The Button component is a selectable input containing a text label and an optional icon that enables users to trigger an action. The default configuration for a button is plain text within a container, which can have different styles based on the variant you choose.
## 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](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/application-development/ui-builder/work-components.md).
**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 button 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](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/application-development/ui-builder/work-pages.md).
\[Omitted image "button-config-content-tree.png"\] Alt text: Component with label displayed in the content tree
2. Select the button component, using one of these methods:
- Click anywhere within the component.
- Select the button 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](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/application-development/ui-builder/uib-setup-information.md)
## Button component properties
Configure the appearance and features of the Button component.
To configure the properties, enter either static or dynamic input. Enter dynamic input by selecting the input type.
- **Data binding**: Creates dynamic property values from multiple sources. Sources include state variables \(@state\), URL variables \(@context\), or data resource payloads \(@data\). For details, see [Add and configure data resources to a page](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/application-development/ui-builder/add-data-resources.md).
- **Scripting**: Creates a scripted property value. For details on scripted values, see [Create and bind a client state parameter to a component](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/application-development/ui-builder/state-parameters.md).
<table id="table_lm2_fcs_xnb"><thead><tr><th>
Label \[property\]
</th><th>
Description
</th></tr></thead><tbody><tr><td>
Label\[label\]
</td><td>
Inner label of the button.
</td></tr><tr><td>
Variant\[variant\]
</td><td>
Color and behavior of the button.
</td></tr><tr><td>
Size\[size\]
</td><td>
Size of the button.
</td></tr><tr><td>
Disabled\[disabled\]
</td><td>
Option to disable the component. When this property is set to true, the button color is muted and user interaction is unavailable.Default: **false**
</td></tr><tr><td>
Icon\[icon\]
</td><td>
Icon to display inside the button.
</td></tr><tr><td>
Animated icon\[animatedIcon\]
</td><td>
Animated icon to display inside the button.
</td></tr><tr><td>
Tooltip label\[tooltipContent\]
</td><td>
Text that is displayed when hovering either of the buttons.
</td></tr><tr><td>
ARIA properties\[configAria\]
</td><td>
An object whose keys reference a specific HTML element within the dropdown. The value of each key is an object that contains an ARIA property and corresponding value. These ARIA properties are set on the specified element.
</td></tr></tbody>
</table>## Button component events
Select event handlers to configure the actions \(events\) provided with the Button component.
The Events tab shows the events used by the Button 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 Button 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](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/application-development/ui-builder/event-handler.md).
|Event|Description|
|-----|-----------|
|Button clicked|Dispatched when the user interacts with the button.|
| title | Button component setup |
| description | The Button component is a selectable input containing a text label and an optional icon that enables users to trigger an action. The default configuration for a button is plain text within a container, which can have different styles based on the variant you choose.Configure the appearance and features of the Button component.Select event handlers to configure the actions \(events\) provided with the Button component. |
| locale | en-US |
| canonical_url | https://www.servicenow.com/docs/r/application-development/ui-builder/button-component-uib-setup.html |
| release | brazil |
| product | UI Builder |
| classification | ui-builder |
| topic_type | task |
| last_updated | 2026-09-10 |
| reading_time_minutes | 3 |
| breadcrumb | UIB Setup InformationUI BuilderBuilder libraryDeveloping your applicationClassic app developmentBuilding applications |