Skip to main content

Mobile: Visual elements

Visual elements display content in your native mobile app, from text and icons to maps and web views. Learn what each one does and what to keep in mind when you use it.

Written by Sofia Maconi

Text

The Text element displays text that users can't edit.

Button

A button is a shape with text, an icon, or both, built to trigger workflows when users tap it.

Icon

Icon elements let you pick an icon to display from several different icon collections (see Key terms).

On Android devices, Phosphor icons in the Fill style may display as black boxes instead of the intended icon. This is caused by a bug in a third-party library that's required to render these icons.

There's currently no workaround, and the behavior will remain until the library's author resolves it. If your app relies on filled Phosphor icons, consider using an alternative icon style for Android builds.

Image

Image elements let you place images in your app. The element supports widely used image types such as PNG, JPG, SVG, WebP, and GIF.

Generating an image with AI

You can generate images with AI. Type in a prompt and select a size, quality, and style. The Auto setting lets the AI choose style setting based on your prompt. The number of tokens used depends on your selections.

Check Generate Alt tags to automatically generate an Alt text (see Key terms).

Shape

The Shape element adds a rectangle to the view that can be resized, rounded, and styled in different ways.

Map

The Map element lets you place a Google map on the view that your users can fully navigate. You can also use Apple Maps on iOS devices by turning on the Use Apple Maps on iOS property.

WebView

The WebView element lets you display one of your app's pages inside an element in your mobile app. You can set its responsive behavior just like any other element, so it adapts to different screen sizes.

The WebView element's property editor with the Destination dropdown set to index and an empty Data to send field.

Use the Destination property to choose which of your app's pages the WebView displays.

Keep in mind that users can't navigate to other pages while using the WebView, so design the page with all the content they need on a single page. The WebView element can only display pages from your own app, so you can't use external URLs.

The WebView element doesn't work in web preview. Test it with simulated device or a dev build instead.

Disable zoom

The Enable zooming property lets users pinch to zoom in or out. It's turned off by default.

The Interaction tab of the WebView element's property editor, with the Enable zooming toggle under Options highlighted and switched off.

Enable zooming is in the Options section of the Interaction tab.

Keeping zoom off can improve the user experience, particularly in apps that rely heavily on web views, where unintended zooming can disrupt the interface. If you want to allow zooming, turn on Enable zooming in the element's properties.

Sign up with Apple button

Note: The Apple Sign-In Button has fewer styling options than other Bubble elements. This is by design: Apple's Human Interface Guidelines specify how the button may appear, and App Review checks it. Bubble exposes the options Apple allows and locks the rest, so the button you place in the editor follows Apple's guidelines. You can read more about this in the article linked below.

The Apple Sign-In Button is a pre-built element that triggers Apple's sign-in flow when tapped. It handles the native experience on iOS and the browser-based flow on Android and web, and offers the styling options that Apple's guidelines allow.

Before using this element, follow the setup steps in the main article to configure your app on the Apple side.

Key terms

Icon collections: Icons are contained within libraries, similar to all the letters in a specific font. For a list of the natively supported icon libraries in Bubble, see the icon element.

Alt text: "Alt text" is short for alternative text. It's a written description of an image used by screen readers for visually impaired users, displayed when an image fails to load, and read by search engines to understand what an image depicts.

Did this answer your question?