Skip to content

Timeline

The Timeline element provides a flexible and customizable way to display chronological events, project milestones, or historical data. It supports both vertical and horizontal layouts with full control over markers, connectors, and event positioning.

Features

  • Multiple Layout Options: Choose between vertical and horizontal timeline orientations
  • Customizable Markers: Control shape, size, color, and add optional icons
  • Flexible Alignment: Position events on left, right, or alternate sides in vertical layout, or top/bottom in horizontal layout
  • Responsive Design: Automatically adapts to different screen sizes and container widths
  • Interactive Elements: Click events for both markers and content
  • Dynamic Data Binding: Easily connect to collections or variables
  • Complete Styling Control: Customize colors, sizes, and connector appearance

Getting Started

Using AI

The quickest way to set up a timeline is by using AI:

  1. Ask AI to add the timeline. Make sure to specify:

    • Specific styling requirements
    • Any contextual data you would like it to use
    • Settings you would like applied

    For example:

    AI setup prompt
  2. The AI will then create your styled timeline using any data you may have passed as context:

    AI setup visual
  3. Continue refining your timeline by asking for specific adjustments:

    • "Change the timeline to horizontal layout"
    • "Make timeline markers square instead of round"
    • "Add activity icons inside the markers"
    • "Alternate events on both sides of the timeline"

Manual Setup

  1. Add a Timeline element to your page from the Add panel
  2. Configure the layout and alignment in the style properties panel:
    • Choose vertical or horizontal layout
    • Set the alignment of events
  3. Configure markers:
    • Select marker shape (circle or square)
    • Set size and background color
    • Optionally add icons to markers
  4. Add timeline events:
    • Create static events directly in the properties panel, or
    • Bind to a collection or variable containing event data

Layout Options

The timeline offers two primary layout orientations:

LayoutBest ForDescription
VerticalTraditional timelines, historical eventsEvents flow from top to bottom with markers aligned along a vertical connector
HorizontalProject timelines, roadmapsEvents flow from left to right with markers aligned along a horizontal connector
Timeline layouts: vertical and horizontal

Vertical Layout

In vertical layout, you have three alignment options:

AlignmentDescription
LeftMarkers and connector on the left, content on the right
RightMarkers and connector on the right, content on the left
AlternateMarkers and connector in the center, content alternates left and right

Horizontal Layout

In horizontal layout, you have two alignment options:

AlignmentDescription
TopMarkers and connector on top, content below
BottomMarkers and connector at bottom, content above

In the horizontal layout, when the timeline has a width constraint and overflows as a result, it will create a scrollable container ensuring all events remain visible.

Markers

Markers are visual indicators that highlight each event point on the timeline.

Marker Style Options

PropertyDescriptionOptions
Marker ShapeThe shape of the timeline markersCircle or Square
Marker SizeThe size (width/height) of markersAny valid length (e.g., "16px")
Marker BackgroundThe background color of markersAny color
Show IconWhether to display an icon inside markersOn/Off
Marker IconThe icon to display in markersAny icon from the library
Marker Icon ColorThe color of the iconAny color
Marker Icon SizeThe size of the iconAny valid length (e.g., "12px")
Timeline marker style options

Timeline Style

Control the appearance of the timeline connector and layout:

PropertyDescriptionOptions
Connector ColorThe color of the timeline connector lineAny color
Connector WidthThe thickness of the timeline connector lineAny valid length (e.g., "2px")
LayoutThe orientation of the timelineVertical or Horizontal
Events AlignmentHow events are positioned relative to the connectorFor vertical: Left, Right, or Alternate. For horizontal: Top or Bottom
Timeline style options

Timeline Events

Events are the core data elements displayed on the timeline. Each event represents a point or period in time with associated information.

Adding Static Events

For simple timelines, you can add events directly in the timeline properties:

  1. Open the event schema creation panel
Timeline Event Schema Panel
  1. Define the fields of your events
Timeline Event Schema Creation
  1. Add as many events as needed. Each event will have the fields you defined in the event schema.
Manual Adding Events

Binding Dynamic Events

For most applications, you'll want to bind events from a collection or variable:

  1. Create a collection or variable containing your event data
  2. In the timeline properties panel, bind the "Timeline Data" property to your data source
Bind Data example

Event Data Structure

A typical event object might include:

javascript
{
  "title": "Project Kickoff",
  "date": "January 15, 2025",
  "description": "Initial team meeting and project scope definition",
  "status": "completed",
  "metrics": {
    "team": 5,
    "tasks": 12
  }
}

The timeline does not expect any set fields in your data, so you can use any data structure that fits your needs. You can reference fields of your data within the timeline card using the context, like so:

Bind Context example

Customizing Event Content

Each timeline event creates an empty Timeline Card container that you can fill with your own content. This allows for complete control over how each event is displayed. To populate your events with content:

  1. Open the Add panel
Open Add Panel
  1. Drag whatever elements you like into your event container
Adding Element
  1. Utilise the context data of your events
Binding Content

OR

To quickly style the cards of your timeline, simply use AI:

  1. Pass in your Timeline Card as context by clicking on it
Passing Element
  1. Pass in any data you want to be used in the card, like the context data
Passing Data
  1. Prompt the AI with what you want your cards to look like. For example:
I want my timeline card to have a neat, modern design.
  1. The AI will then adjust the design of your timeline cards and utilize any data passed: Passing Data

Interacting With The Timeline

The timeline provides two primary events for user interaction:

Event Click

When a user clicks on an event's content (the timeline card), the On event click trigger fires with the complete event data. Use this to:

  • Navigate to a detailed view of the event
  • Open a modal with additional information
  • Trigger other workflows based on the event data

Marker Click

When a user clicks specifically on an event's marker, the On marker click trigger fires with the event data. This allows for different behaviors when clicking markers versus content:

  • Show a quick preview or tooltip
  • Navigate to a different view
  • Toggle expanded details

Both events provide the full event object from your timeline data.

Example Use Cases

Project Milestone Timeline

Create a timeline showing key project phases and deliverables:

  1. Use a vertical timeline with alternate alignment
  2. Add distinctive icons for different milestone types
  3. Color-code status using conditional styling
  4. Include progress metrics and team information

Historical Events Visualization

Display historical events with descriptive content:

  1. Use a horizontal timeline for chronological flow
  2. Include images for each historical period
  3. Provide detailed descriptions with expandable content
  4. Use custom styling to reflect historical periods

Product Roadmap

Showcase upcoming product features and releases:

  1. Use a horizontal timeline with top alignment
  2. Group features by release version
  3. Include status indicators and target dates
  4. Link to detailed feature specifications

Best Practices

Do:

  • Use consistent spacing between timeline events
  • Ensure adequate contrast between marker/connector colors and background
  • Keep event content concise and visually balanced
  • Use icons that clearly represent the event type or category
  • Limit the number of events in horizontal timelines to prevent excessive scrolling

Don't:

  • Overcrowd the timeline with too many closely-spaced events
  • Use markers that are too small to be easily clickable
  • Create text-heavy event cards that overwhelm the visual flow
  • Use similar colors for different status indicators
  • Forget to make the timeline accessible with clear navigation cues

Properties Reference

Marker Style Properties

PropertyTypeDescription
Marker ShapeSelectShape of timeline markers (circle or square)
Marker SizeLengthSize of timeline markers (width/height)
Marker BackgroundColorBackground color of markers
Show IconToggleEnable/disable icon display in markers
Marker IconIconIcon to display in markers
Marker Icon ColorColorColor of the icon in markers
Marker Icon SizeLengthSize of the icon in markers
Timeline marker style options

Timeline Style Properties

PropertyTypeDescription
Connector ColorColorColor of the timeline connector line
Connector WidthLengthWidth of the timeline connector line
LayoutSelectOrientation of the timeline (vertical or horizontal)
Events AlignmentSelectAlignment of timeline events relative to the connector
Timeline style options

Settings Properties

PropertyTypeDescription
Timeline DataArrayCollection of events to display on the timeline

Event Triggers

EventDescriptionPayload
On event clickTriggered when clicking an event's contentEvent object from timeline data
On marker clickTriggered when clicking an event's markerEvent object from timeline data

Example Event Trigger Payloads

On event click / On marker click

javascript
{
  "title": "Project Kickoff",
  "date": "January 15, 2025",
  "description": "Initial team meeting and project scope definition",
  "status": "completed",
  "metrics": {
    "team": 5,
    "tasks": 12
  }
}