banner
The Banner component provides a flexible way to deliver important messages directly within your mobile app. Designed to support icons, styled text, and action buttons, it can be customized to match your app’s look and feel. Use banners to highlight errors, warnings, or information, as well as to drive user action with clear calls to action. Whether alerting field workers to an issue, sharing status updates, or prompting the next step, banners ensure critical information is visible, actionable, and consistent with your design requirements.

Configuration options
instanceId
The instanceId is a unique identifier assigned to the banner component. It allows other parts of the app—such as functions, actions, or conditional logic—to reference this specific banner. By using the instanceId, you can programmatically control when the banner is shown or hidden, update its content dynamically, or trigger interactions tied to that particular instance. This ensures that each banner can be distinctly managed, even when multiple banners are present on the same screen.
title
The title property defines the main text displayed in the banner. It supports multiple configuration options; you can provide a static string, bind it dynamically using an expression, or extend it with line options for advanced styling. With line options, you can control text appearance using properties such as fontSize, isbold, and color, as well as specify the numberOfLines to display.
when
The when property controls the visibility of a component by evaluating a condition. When the condition resolves to true, the component is displayed; when it resolves to false, the component is hidden. This allows you to show or hide any component dynamically based on expressions, data values, or user interactions.
leftElement
The leftElement property lets you add an icon to the left side of the banner, providing a visual cue that reinforces the banner’s purpose—for example, signaling an error, warning, or informational message. The icon can be fully customized using styling options such as type (duotone, contained, or basic), shape (rounded, circle, or basic), and color to align with your app’s design. Additionally, you can make the icon interactive by configuring an onPress property to trigger an action when the icon is tapped.
style
The styling property defines the visual appearance of the banner based on the type and importance of the message. It provides preset styling options:
isPositive
isNegative
isWarning
This helps communicate success, errors, or caution at a glance. By applying the appropriate style, you can ensure that users immediately recognize the context and urgency of the message being displayed. The selected style is applied to the banner's border, action buttons, and icon.
subtitle
The subtitle property defines the secondary text displayed beneath the banner’s title. It offers flexible configuration options; you can provide a static string, bind the value dynamically with an expression, or enhance it using line options for advanced styling. With line options, you can customize the text’s appearance using properties such as fontSize, isBold, and color, and control layout by specifying numberOfLines.
actions
The action property defines what happens when the banner’s action button is tapped. You can configure it to trigger any supported app action—such as navigating to another screen, opening a URL, or updating data. Use IntelliSense to explore the full list of available actions.
activeItem filter searchText
Jig-level state that applies to the specific jig (screen) context, with available keys depending on the jig type (e.g., for list jigs: activeItem, filter, searchText, etc.)
Considerations
The Banner component can be combined with other components (such as
section) and actions (such asshowAlert) to build a centralized place for highlighting news, updates, or errors.
Examples and code snippets
Basic banner

This example demonstrates the simplest use of the banner component, using only the core properties—title and subtitle, to display an HR message at the top of the screen welcoming a new staff member.
Banner with title and subtitle styling

In this example, the banner’s title and subtitle are customized by adjusting the fontSize, applying color, and enabling isBold styling.
Banner with actions
This example shows a banner using a title and actions to notify the user of a failed payment.

Banner with icon

In this example, a banner notifies you that new jobs have been assigned to you. It displays a colored icon and uses a contained style with rounded corners.
Banner with styling, icon and an action
This example shows a maintenance announcement banner placed at the top of the Global Inc Workday screen. The banner clearly informs frontline users about scheduled downtime. It is styled with a warning border to enhance visibility and includes an action button that engages the user by allowing them to acknowledge the message.

Banner with styling
This example demonstrates a banner styled to grab the user’s attention, with an action button designed to encourage engagement.

Last updated
Was this helpful?