6 min readUpdated Mar 2, 2026

Tile Component Documentation

Overview

The Tile component serves as a versatile visual element within the Vantage analytics & data platform. It is designed to encapsulate various types of data visualizations or content, providing users with the ability to view, interact with, and analyze their data through a customizable and aesthetic interface. The Tile can adapt its appearance based on input properties and supports loading states, tooltip descriptions, and action buttons.

Settings

The Tile component has several settings that control its appearance and behavior. Below, each setting is explained in detail:

1. Children

2. isLoading

3. headerActions

4. props.config

How It Works

The Tile component dynamically resolves its content based on the properties provided:

  1. Data Handling: It first checks for any data defined in props.config.data. If not found, it looks in props.config.stats and subsequently in the workflow or AI data caches.

  2. Dynamic Rendering: Based on the isLoading boolean, the Tile will either display a loading skeleton or the actual content provided via children.

  3. Styling: The Tile applies various CSS styles determined by the settings related to colors, dimensions, and borders to adjust its look and layout.

  4. Interactivity: If a clickUrl is provided, the Tile is wrapped in an anchor element to make it clickable, enhancing navigation and interactivity.

Expected Data

The Tile component expects data in a specific format that will be used in visualizations or content displays. The most critical pieces are:

AI Integrations

The Tile component can leverage the AI capabilities present in the Vantage platform through data caching mechanisms. The component can retrieve relevant data from the AI context cache based on the tileId, facilitating a robust data-driven experience.

Billing Impacts

No direct billing impacts are associated with the Tile component itself. However, the use of AI data retrieval may incur usage costs based on the Vantage platform's pricing model. Users should ensure they are aware of any potential costs related to extensive use of AI features or workflows that incur billing based on data processing.

Use Cases & Examples

Use Case 1: Data Monitoring Dashboard

A business might use Tiles to monitor key performance indicators (KPIs) such as sales metrics, user engagement statistics, and inventory levels. Each Tile could represent a different metric, visually summarizing the data for easy interpretation.

Use Case 2: Interactive Reports

The Tile can be implemented in reports where various data visualizations are presented. Each Tile could provide insights into different datasets, making it easier for users to interact with and draw conclusions from the data.

Detailed Example Configuration:

To monitor sales KPIs, a business can create a Tile configuration as follows:

javascript
{
  config: {
    title: "Monthly Sales",
    subtitle: "Performance Overview",
    height: 2,
    width: 1,
    borderColor: "#4CAF50",
    borderWidth: "2px",
    borderRadius: "md",
    backgroundColor: "#E8F5E9",
    footerText: "Data updated monthly",
    footerActions: [
      { label: "Refresh", action: "refreshSales()" },
      { label: "View Details", action: "viewSalesDetails()" },
    ],
    clickUrl: "https://www.example.com/sales"
  },
  isLoading: false,
  children: <SalesChart data={salesData}/>,
}

In this configuration: