Livestream: AI-Powered prototyping & wireframing | 4/24

Announcing Visual Copilot - Figma to production in half the time

Builder logo
builder.io
Contact SalesGo to App

Livestream: AI-Powered prototyping & wireframing | 4/24

Announcing Visual Copilot - Figma to production in half the time

Builder logo
builder.io

Blog

Home

Resources

Blog

Forum

Github

Login

Signup

×

Visual CMS

Drag-and-drop visual editor and headless CMS for any tech stack

Theme Studio for Shopify

Build and optimize your Shopify-hosted storefront, no coding required

Resources

Blog

Get StartedLogin

Use the data tab to enable interactivity within your content entry. Utilize data directly through the Builder platform or connect to your own API to determine what is shown within a content entry.

  • Use the Data tab to enable interactivity within your content entry.
  • Use your own API by adding an API call within the Code panel.

After selecting a block within the Visual Editor, select the Data tab.

Image of the Data tab that highlights all panels within the Data tab, with a label that says "Add data and events."

There are several panels within the Data tab:

  • Element events: Trigger code to run when an event, such as a mouse click, is triggered.
  • Element data bindings: Dynamically determine the content or visibility of a block based on code or state.
  • Content inputs: Create new inputs of a variety of types that are associated with this content entry. Bind the values of these inputs to parts of the content entry.
  • Content state: This panel displays the current state of the content entry. Data added to the Code panel will be displayed here alongside any other data related to this content entry.
  • Code: Custom code can be run within this panel, including adding data directly to state. Data can be added directly or through an API call.

To begin using the Data tab, first add your own data. You can do so within the Code panel by manually adding data to Builder's internal state object.

Modal from clicking the button within the code panel which displays CSS on one side and JS on the other; a JavaScript array is assigned to "state.persons" and is highlighted with the text "Add data directly to state within the Code panel."

Alternatively, load data dynamically by making an API call to an accessible API.

Modal from clicking the button within the code panel which displays CSS on one side and JS on the other; a JavaScript request is made and the result is assigned to "state.persons" and is highlighted with the text "Access data from an API."

Once you have data accessible within the content entry, you can use it in several ways.

  • Bind data to specific text. For example, change a heading from "Welcome back!" to "Welcome back, Diane!"
  • Repeat a block dynamically. Iterate over an array of objects within your data, displaying a block element for each object. Within that object, dynamically change the text or visuals depending on information stored within the object.
  • Trigger data changes through events. Choose an event type, such as on click, and modify data as you wish. With Element events, change the visibility of blocks within your content entry or update text and visuals.

In the video below, a fragment representing a team member's contact card is selected in the Layers tab of the Visual Editor. Then, within Element data bindings, the block is repeated for each person stored within data.

Read more in the Data binding overview, or see Add interactivity to learn how to use Visual Copilot to generate interactivity within your content entry.

Was this article helpful?

Product

Visual CMS

Theme Studio for Shopify

Sign up

Login

Featured Integrations

React

Angular

Next.js

Gatsby

Get In Touch

Chat With Us

Twitter

Linkedin

Careers

© 2020 Builder.io, Inc.

Security

Privacy Policy

Terms of Service

Get the latest from Builder.io

By submitting, you agree to our Privacy Policy

  • Platform Overview

    AI Overview

  • Integrations

  • What's New

  • Figma to Code Guide

  • Composable Commerce Guide

  • Headless CMS Guide

  • Headless Commerce Guide

  • Composable DXP Guide

  • Design to Code

  • Blog

  • Knowledge Base

  • Community Forum

  • Partners

  • Templates

  • Success Stories

  • Showcase

  • Resource Center

    Glossary

© 2025 Builder.io, Inc.

Security

Privacy Policy

SaaS Terms

Security & Compliance

Cookie Preferences

Gartner Cool Vendor 2024