Package-level declarations
ProgressTracker is a visual navigation element typically used to display progress or guide user through a multi-step process.
It displays a linear progress as steps, accepts between 2 and 6 steps maximum. There are two possible orientations: horizontal with ProgressTrackerRow
or vertical with ProgressTrackerColumn
. Each step displays its label via stepLabel. Selection and click are handled. A step indicator is displayed via StepIndicator for each step. Its state is updated according to selection.
Horizontal | ||
Vertical |
The minimal usage of the component is the step list to be displayed.
val items = persistentListOf(
ProgressStep("Lorem ipsume", true),
ProgressStep("Lorem ipsume dolar sit amet", true),
ProgressStep("Lorem ipsume", false),
)
ProgressTrackerRow(items = items)
Sizes
There are 3 possible sizes: Large(Default), medium and small. Only the large one should be interactive, if it's not the case please ask your designer to consider using the Large size as recommended in the design specs.
Types
Defines the different sizes of the progress indicator
Step in the ProgressTrackerRow&ProgressTrackerColumn component. Each step has a label and a enabled state.
Functions
ProgressTrackerColumn is a visual navigation element typically used to display progress or guide user through a multi-step process. It displays a linear progress as steps, accepts between 2 and 6 steps maximum.
ProgressTrackerRow is a visual navigation element typically used to display progress or guide user through a multi-step process. It displays a linear progress as steps, accepts between 2 and 6 steps maximum.