UX4G Logo
Components

Status Pipeline

Horizontal and vertical progress pipeline tracking multi-stage approval checkpoints and citizen application lifecycles

The UX4G Status Pipeline component visualizes sequential checkpoints in administrative approval workflows, citizen application tracking, grievance redressal lifecycles, and verification pipelines.

Key Capabilities

  • Dual Orientations: Seamless switching between Ux4gPipelineOrientation.Horizontal for top summary banners and Ux4gPipelineOrientation.Vertical for detailed timeline views.
  • Automated State Progression: Given a currentStep index, prior steps auto-resolve to Completed (green checkmark), the active step resolves to Current (ring donut), and remaining steps render as numbered Upcoming circles.
  • Custom States & Colors: Explicit step overriding for Error (failed inspection), Warning (clarification requested), custom icons, or tailored status colors.
  • Preset Sizes: Three standardized sizes: S (20dp circle, 2dp line), M (32dp circle, 3dp line), and L (40dp circle, 3dp line).

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


Interactive Previews

1. Horizontal Status Pipeline

Horizontal progress pipeline ideal for desktop/tablet headers, application summary cards, and multi-stage form progress tracks.

Ux4gStatusPipeline (Horizontal)Jetpack Compose
UX4G Horizontal Status Pipeline Preview

2. Vertical Status Pipeline

Vertical progress pipeline best suited for mobile application details, audit logs, and detailed chronological stage descriptions.

Ux4gStatusPipeline (Vertical)Jetpack Compose
UX4G Vertical Status Pipeline Preview

Kotlin Usage

1. Dynamic Application Approval Tracking

ApplicationStatusScreen.kt
import androidx.compose.foundation.layout.*
import androidx.compose.runtime.*
import androidx.compose.ui.Modifier
import androidx.compose.ui.unit.dp
import com.ux4g.designsystemv1.components.statuspipeline.*

@Composable
fun ApplicationTrackingPipeline(currentStage: Int) {
    val steps = remember {
        listOf(
            Ux4gPipelineStep(
                label = "Application Submitted",
                description = "12 May 2026, 09:30 AM"
            ),
            Ux4gPipelineStep(
                label = "Document Scrutiny",
                description = "Revenue Officer Assigned"
            ),
            Ux4gPipelineStep(
                label = "Field Inspection",
                description = "Scheduled on 18 May"
            ),
            Ux4gPipelineStep(
                label = "SDM Sanction",
                description = "Pending Final Approval"
            ),
            Ux4gPipelineStep(
                label = "Certificate Dispatch",
                description = "Digital Download"
            )
        )
    }

    Ux4gStatusPipeline(
        steps = steps,
        currentStep = currentStage,
        orientation = Ux4gPipelineOrientation.Vertical,
        size = Ux4gPipelineSize.M,
        modifier = Modifier.padding(16.dp)
    )
}

2. Pipeline with Error and Warning Checkpoints

VerificationPipelineWithExceptions.kt
import androidx.compose.foundation.layout.padding
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.unit.dp
import com.ux4g.designsystemv1.components.statuspipeline.*

@Composable
fun PipelineWithValidationIssues() {
    val steps = listOf(
        Ux4gPipelineStep(
            label = "Aadhaar eKYC",
            description = "Verified successfully",
            state = Ux4gPipelineStepState.Completed
        ),
        Ux4gPipelineStep(
            label = "Bank Account Match",
            description = "Warning: Name spelling mismatch",
            state = Ux4gPipelineStepState.Warning
        ),
        Ux4gPipelineStep(
            label = "Income Verification",
            description = "Failed: Certificate expired",
            state = Ux4gPipelineStepState.Error
        ),
        Ux4gPipelineStep(
            label = "Final Sanction",
            description = "Awaiting corrected documents",
            state = Ux4gPipelineStepState.Upcoming
        )
    )

    Ux4gStatusPipeline(
        steps = steps,
        currentStep = -1, // Use explicit states from step models
        orientation = Ux4gPipelineOrientation.Vertical,
        size = Ux4gPipelineSize.M,
        modifier = Modifier.padding(16.dp)
    )
}

Parameters

Ux4gStatusPipeline Props

PropTypeDescriptionDefault
steps *List<Ux4gPipelineStep>Sequential list of pipeline checkpoint data models.—
modifierModifierCompose modifier applied to outer container layout.Modifier
currentStepInt0-indexed active progress pointer. When >= 0, auto-resolves states.0
orientationUx4gPipelineOrientationPipeline orientation (Vertical or Horizontal).Ux4gPipelineOrientation.Vertical
sizeUx4gPipelineSizePreset size sizing dimensions (S, M, L).Ux4gPipelineSize.M
showLabelsBooleanWhether step label titles are displayed.true
showDescriptionsBooleanWhether step description subtitles are displayed.true
activeLineWidthDp?Custom line width for completed/active connector segments.null
inactiveLineWidthDp?Custom line width for upcoming connector segments.null
completedColorColor?Custom circle and icon color override for completed steps.null
currentColorColor?Custom circle color override for the active step.null
upcomingColorColor?Custom border color override for upcoming steps.null
errorColorColor?Custom color override for error steps.null
warningColorColor?Custom color override for warning steps.null
completedLineColorColor?Custom color for active connecting lines.null
upcomingLineColorColor?Custom color for inactive upcoming connecting lines.null
labelSpacingDp?Custom spacing between the circle indicator and label text.null
circleSizeDp?Custom diameter override for step indicator circles.null

Ux4gPipelineStep Model Props

PropTypeDescriptionDefault
labelString?Primary title for this checkpoint (e.g., "Submitted").null
descriptionString?Supporting timestamp or status note (e.g., "5 Apr").null
stateUx4gPipelineStepStateStep status (Completed, Current, Upcoming, Error, Warning).Ux4gPipelineStepState.Upcoming
customIcon(@Composable () -> Unit)?Custom composable icon rendered inside the step circle.null
customIconVectorUx4gIcon?Custom UX4G icon vector rendered inside the step circle.null
customColorColor?Custom color override for this individual step circle.null

Ux4gPipelineOrientation Reference

OrientationDescription
HorizontalRenders steps in a horizontal row connected by horizontal lines, with labels centered beneath.
VerticalRenders steps in a vertical column with connecting lines running down and labels placed to the right.

Ux4gPipelineStepState Reference

StateVisual RenderingMeaning
CompletedSolid green circle with white checkmark icon (Ux4gIcons.Check)Step successfully finished
CurrentSolid primary color ring with inner surface circle (donut)Step currently in progress
UpcomingGray outlined circular border with numbered step indexStep pending execution
ErrorRed outlined circular border with red step indexStep failed validation / rejected
WarningAmber/orange outlined circular border with step indexAction required / soft alert

Ux4gPipelineSize Reference

SizeCircle Diameter (Dp)Active Line Width (Dp)Inactive Line Width (Dp)Icon Size (Dp)
S20.dp2.dp1.dp12.dp
M32.dp3.dp2.dp18.dp
L40.dp3.dp2.dp22.dp

On this page