5 min readUpdated Mar 2, 2026

BuilderElement Documentation

Overview

The BuilderElement component is a key part of the Vantage analytics and data platform, serving as a versatile container for various child elements that can display different types of data, text, or interactive components. It dynamically renders its content based on the element.type provided to it, allowing users to configure the appearance and behavior of each element efficiently. This component includes a toolbar for configuration and removal of elements, offering an intuitive editing experience.

Purpose

BuilderElement is designed to provide a flexible UI component for building and visualizing data within the Vantage platform. Depending on the type of data or insights needed, users can see options such as text, lists of items, graphical representations, and action buttons. This component is crucial for assembling dashboards and analytics views that adapt to specific user needs.

Settings

The BuilderElement component can be customized through a variety of settings. Below is a detailed explanation of each setting:

Element Props

How It Works

The BuilderElement functions and uses various helpers and components to manage the rendering of specific element types. Based on the element.type, it dynamically selects the appropriate rendering logic. The workflow for rendering an element is as follows:

  1. Receive Element Data: The component receives an element prop, which holds the type of content and its configuration.
  2. Render Specific Content: A switch-case statement determines the correct child component to render—text, list, graph, etc.—based on the provided element.type.
  3. Display Toolbar: A toolbar appears on hover, allowing users to configure or remove the element.
  4. Apply Styles: Inline styles and class names can be set, adjusting the appearance dynamically.

Data Expectations

BuilderElement expects its element prop to include keys necessary for rendering, most notably:

AI Integrations

Currently, there are no direct integrations with AI within the BuilderElement component. However, it can be enhanced with AI-driven insights or analytics in future updates which could dynamically modify what is being rendered based on usage patterns or predictive analytics.

Billing Impacts

Using the BuilderElement may implicate billing based on the types of data being processed or visualized within the Vantage platform. Specific costs may be incurred based on data volume, workflow executions, or additional advanced features such as AI integrations or additional data storage. Users should consult their billing agreements for specifics related to data visualization components like BuilderElement.

Use Cases & Examples

Use Case 1: Dashboard Analytics

A marketing team wants to create a dashboard displaying key performance indicators (KPIs) such as conversion rates, campaign performance, and customer engagement metrics. By utilizing the BuilderElement, they can set up various child elements to visualize these metrics in formats that best suit each KPI.

Use Case 2: Reporting Workflow

A business analyst needs a component that can show a list of reports available to stakeholders. The BuilderElement can be used to create a dynamic, scrollable list that pulls in report titles and their statuses.

Use Case 3: Interactive Data Exploration

Data scientists can leverage BuilderElement to create graphs representing trends in user behavior over time. The flexibly customizable aspect allows them to modify how the data is visualized immediately.

Detailed Example for Use Case 1

For the marketing dashboard, the following configuration can be applied to the BuilderElement:

javascript
const dashboardElement = {
    type: 'list',
    config: {
        backgroundColor: '#f9fafb',
        borderRadius: '0.375rem'
    },
    workflows: [
        { id: '1', title: 'Campaign Performance' },
        { id: '2', title: 'Customer Engagement Metrics' },
    ]
};

In this configuration:

By carefully configuring the BuilderElement, the marketing team can efficiently visualize critical data and insights in a user-friendly manner.