Skip to content

Step indicator

A row of steps for a multi-step flow: done, current, pending or locked.

Step indicator Step indicator

val steps =
    listOf(
        JengaStep(
            label = "Details",
            state = JengaStepState.Done,
        ),
        JengaStep(
            label = "Choices",
            state = JengaStepState.Current,
        ),
        JengaStep(
            label = "Review",
            state = JengaStepState.Pending,
        ),
    )
JengaStepIndicator(
    steps = steps,
    stepContentDescription = { index, step ->
        "Step ${index + 1} of 3, ${step.label}"
    },
)

API reference for JengaStep