UX4G Logo
Components

Journey Timeline

Multi-stage application status tracker and citizen journey milestone component supporting both Vertical and Horizontal layout orientations

The UX4G Journey Timeline component visualizes multi-stage citizen workflows, application processes, and milestone checkpoints in both Vertical and Horizontal orientations.

It provides step indicators (completed checks, active rings, upcoming nodes), connecting lines, date tags, helper text, inline status pills (e.g. 2 days remaining | Pending), and customizable header sections.

Import from com.ux4g.designsystemv1.components.journeytimeline.*.


Interactive Previews

1. Vertical Journey Timeline

The default vertical orientation renders a continuous timeline on the left with connected milestone cards detailing step progression, tags, helping text, links, and status badges.

Ux4gJourneyTimeline (Vertical Orientation)Jetpack Compose
UX4G Vertical Journey Timeline Preview

2. Horizontal Journey Timeline

Horizontal layout showing a compact step indicator bar across the top with active/completed connections, an optional header, and detailed card info for the selected step below.

Ux4gJourneyTimeline (Horizontal Orientation)Jetpack Compose
UX4G Horizontal Journey Timeline Preview

Kotlin Usage

Citizen Scheme Tracking Example
import androidx.compose.foundation.layout.*
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.unit.dp
import com.ux4g.designsystemv1.components.journeytimeline.*
import com.ux4g.designsystemv1.foundation.Ux4gIcons

@Composable
fun SchemeApplicationTracker() {
    Column(
        modifier = Modifier
            .fillMaxWidth()
            .padding(16.dp),
        verticalArrangement = Arrangement.spacedBy(24.dp)
    ) {
        // Vertical Timeline Tracker
        Ux4gJourneyTimeline(
            header = Ux4gJourneyHeader(
                title = "Application Progress",
                description = "Track the status of your scholarship application in real time",
                icon = Ux4gIcons.Info
            ),
            orientation = Ux4gJourneyOrientation.Vertical,
            steps = listOf(
                Ux4gJourneyStep(
                    state = Ux4gJourneyStepState.Completed,
                    date = "12 Aug, 10:30 AM",
                    tag = "Verified",
                    title = "Application Submitted",
                    helpingText = "All documents uploaded and digitally signed."
                ),
                Ux4gJourneyStep(
                    state = Ux4gJourneyStepState.Completed,
                    date = "13 Aug, 02:15 PM",
                    tag = "Approved",
                    title = "Identity Verification",
                    helpingText = "Aadhaar and academic certificates verified."
                ),
                Ux4gJourneyStep(
                    state = Ux4gJourneyStepState.Current,
                    date = "15 Aug, 11:00 AM",
                    tag = "In Progress",
                    title = "Under Review by Verification Officer",
                    helpingText = "Application is currently pending nodal officer sign-off.",
                    status = Ux4gJourneyStepStatus(
                        text = "2 days remaining",
                        badgeText = "Pending",
                        badgePosition = Ux4gJourneyBadgePosition.Bottom
                    )
                ),
                Ux4gJourneyStep(
                    state = Ux4gJourneyStepState.Upcoming,
                    date = "Pending",
                    tag = "Upcoming",
                    title = "Direct Benefit Transfer (DBT)",
                    helpingText = "Disbursement directly into Aadhaar linked bank account."
                )
            )
        )
    }
}

Parameters

1. Ux4gJourneyTimeline Props

PropTypeDescriptionDefault
steps *List<Ux4gJourneyStep>List of milestone checkpoints in chronological order.—
modifierModifierCompose layout modifier applied to outer container.Modifier
headerUx4gJourneyHeader?Optional header section with title, description, and action icon.null
currentStepInt?Zero-based index of the active step. When specified, automatically marks earlier steps as Completed, current index as Current, and later steps as Upcoming.null
orientationUx4gJourneyOrientationLayout direction: Vertical or Horizontal.Ux4gJourneyOrientation.Vertical
indicatorSizeDpDiameter of the step circle indicators.20.dp
lineWidthDpThickness of the connecting progression line.3.dp
indicatorCardSpacingDpHorizontal gap between indicator column and cards in vertical orientation, or vertical gap to card in horizontal orientation.12.dp
stepSpacingDpSpace between adjacent step cards.12.dp
activeColorColor?Color for completed/current indicators and lines.Ux4gColors.primary
inactiveColorColor?Color for upcoming indicators and connecting lines.Ux4gColors.neutral900 (25% opacity)
cardBorderRadiusDpCorner radius of the step card containers.8.dp
cardPaddingPaddingValuesInner padding of step cards.PaddingValues(horizontal = 16.dp, vertical = 12.dp)
cardColorColor?Background color override for all step cards.Ux4gColors.neutral0
cardBorderColorColor?Border color override for all step cards.Ux4gColors.neutral900 (10% opacity)
dateStyleTextStyle?Text style override for dates across all steps.null
titleStyleTextStyle?Text style override for titles across all steps.null

2. Ux4gJourneyStep Model

PropTypeDescriptionDefault
title *StringHeadline title of the milestone checkpoint.—
stateUx4gJourneyStepStateMilestone state: Completed, Current, Upcoming.Ux4gJourneyStepState.Upcoming
dateString?Date or timestamp text displayed at the top-left of the card.null
tagString?Pill tag text displayed at the top-right of the card.null
helpingTextString?Supporting explanatory text below the title.null
iconUx4gIcon?Optional icon rendered below the title (e.g. link or file icon).null
iconColorColor?Color override for the step icon.null
statusUx4gJourneyStepStatus?Status indicator pill with dot, status text, and badge.null
customContent(@Composable () -> Unit)?Composable slot for embedding custom rich UI inside the card.null
stepNumberString?Custom number or character shown inside the indicator circle instead of the checkmark.null
cardColorColor?Individual card background color override.null
cardBorderColorColor?Individual card border color override.null
dateColorColor?Individual date text color override.null
titleColorColor?Individual title text color override.null
dateStyleTextStyle?Individual date text style override.null
titleStyleTextStyle?Individual title text style override.null

3. Ux4gJourneyHeader Model

PropTypeDescriptionDefault
title *StringTimeline section header title.—
descriptionString?Subtitle description below the header title.null
iconUx4gIcon?Optional action icon displayed on the header.null
onIconPressed(() -> Unit)?Callback when header icon is tapped.null

4. Ux4gJourneyStepStatus Model

PropTypeDescriptionDefault
text *StringStatus text message (e.g. "2 days remaining").—
dotColorColor?Color of the status indicator dot.Ux4gColors.secondary
badgeTextString?Additional badge label (e.g. "Pending" or "In Progress").null
badgeColorColor?Badge background color override.null
badgeTextColorColor?Badge text color override.null
badgePositionUx4gJourneyBadgePositionPosition of badge: Bottom or TopRight.Ux4gJourneyBadgePosition.Bottom

5. Enums Reference

enum class Ux4gJourneyOrientation {
    Vertical,   // Continuous vertical timeline layout
    Horizontal  // Compact horizontal milestone stepper layout
}

enum class Ux4gJourneyStepState {
    Completed,  // Filled circle with check icon, active line
    Current,    // Target concentric double-ring indicator, active line
    Upcoming    // Subtle outlined circle, muted gray line
}

enum class Ux4gJourneyBadgePosition {
    Bottom,     // Unified pill tag at bottom of step card
    TopRight    // Tag badge at top-right next to date
}

On this page