Skip to main content

Visual elements (web)

Visual elements display content on the page without holding other elements or accepting input. Learn about text, buttons, icons, links, images, shapes, alerts, video, HTML, maps, and more.

Written by Sofia Maconi

Visual elements are the elements you can place on the page that can't contain other elements (like groups) and can't accept input (like input elements). They usually serve two purposes:

  • To display information or contribute to the aesthetics of the page

  • To accept button clicks

Laptop showing a page with a headline, a paragraph of body text, a Sign up button, and a photo of a person at a desk.

Text, images, and buttons are all visual elements.

In the illustration above, all elements are visual elements: text, an image, and a button.

The visual elements category contains the following elements:

Text

A non-editable text element. Both the header and the body copy in the image above are text elements.

Video lessons and articles

How to use the text element

How to use text transform operators

Button

A button is a shape with text or an icon that's optimized for click workflows. It can contain text, an icon, or both.

Video lessons

How to use the button element

How to use the An element is clicked event

Icon

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

On Android devices, Phosphor "filled" icons may display as black boxes instead of the intended icon. This is caused by a bug in a third-party library required for rendering these icons.

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

Video lessons

How to use the icon element

How to use the An element is clicked event

Link

The link element lets you set up a link with a custom text and destination. It can dynamically point to one of your internal pages (including sending data to that page) or point to a static or external link.

Video lessons

How to use the link element

Image

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

Video lessons and articles

How to use the image element

Bubble also has a separate element for uploading images:

How to use the image uploader element

Article: File uploads

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 page which can be resized, rounded, and styled in different ways.

Video lessons

How to use the shape element

Alert

The alert element adds a bar that can show a text message for a set number of seconds before it disappears. It's used to display temporary messages such as success and error messages.

Video lessons

How to use the alert element

How to use the An element has an error running a workflow event

Video

The video element lets you implement streaming video in your app. The element supports YouTube and Vimeo.

Video lessons

How to use the video element

HTML

The HTML element lets you place a snippet of HTML code on the page. It can be useful when you need to include custom HTML code in your app that can't be achieved through Bubble's visual editor. This can be HTML code, CSS styles, and JavaScript code.

Typical use cases for the HTML element include:

  • Embedding third-party widgets

  • Using custom CSS to style or animate elements

  • Adding custom functionality with JavaScript

Video lessons

How to use the HTML element

Map

The map element lets you implement a Google Map on the page, fully navigable by your users.

Video lessons

How to use the map element

How to use the A map's marker is clicked event

Built on Bubble

This element lets you add a small "Built without code: Bubble" logo to your app.

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.

Reference: 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?