Skip to content

Repository files navigation

StepMotion

StepMotion is a lightweight, customizable, and animated stepper UI library for Jetpack Compose. Display multi-step progress in a clean and intuitive way — perfect for forms, onboarding flows, order tracking, checkout flows, and more.


Features

  • 12 stepper variants — 6 horizontal + 6 vertical
  • Full color customization (active, inactive, title, indicator)
  • Smooth animations for state transitions (color, scale, checkmark, connector fill)
  • Visually shows current, previous, and upcoming steps
  • Clean, minimal APIs — drop in and go
  • Ideal for progress tracking, sign-up flows, surveys, checkout, onboarding, and more

Preview

Screenshot_20260215_234011Screenshot_20260215_234040Screenshot_20260215_234100Screenshot 2026-06-04 at 3 09 37 PMScreenshot 2026-06-04 at 3 10 47 PMScreenshot 2026-06-04 at 3 11 05 PMScreenshot 2026-06-04 at 3 11 35 PM

Installation

Add JitPack to your root settings.gradle (or build.gradle):

dependencyResolutionManagement {
repositories {
maven { url 'https://jitpack.io' }
}
}

Add the dependency in your module's build.gradle:

dependencies {
implementation 'com.github.Ali0092:StepMotion-Lib:v1.0.5'
}

Stepper Types

All steppers share a common set of required parameters and expose optional parameters for fine-tuning. Steps use a 0-basedcurrentStep index and animate smoothly between state changes.

Common Parameters

ParameterTypeDescription
stepsList<String>Step labels to display
currentStepIntCurrent step index (0-based)
activeColorColorColor for completed and current step indicators
inactiveColorColorColor for upcoming step indicators
activeTitleColorColorText color for completed and current steps
inactiveTitleColorColorText color for upcoming steps
modifierModifierModifier to apply to the stepper

1. Simple Stepper

A clean stepper with filled circle indicators and animated connectors.

HorizontalStepper

HorizontalStepper(
modifier =Modifier.fillMaxWidth(),
steps =listOf("Details", "Address", "Payment", "Done"),
currentStep =1,
activeColor =Color(0xFF3B82F6),
inactiveColor =Color(0xFFCBD5E1),
activeTitleColor =Color(0xFF1E40AF),
inactiveTitleColor =Color(0xFF94A3B8)
)
ParameterTypeDefaultDescription
circleSizeDp32.dpSize of step indicator circles
circleFontSizeTextUnit14.spFont size for numbers inside circles
titleFontSizeTextUnit13.spFont size for step labels
spacingDp4.dpGap between circle and label
connectorThicknessDp2.dpThickness of connector lines
borderWidthDp2.dpBorder width around the current step circle
animationDurationInt400Animation duration in milliseconds

VerticalSimpleStepper

VerticalSimpleStepper(
modifier =Modifier.fillMaxWidth().height(280.dp),
steps =listOf("Select", "Confirm", "Pay", "Complete"),
currentStep =1,
activeColor =Color(0xFFF59E0B),
inactiveColor =Color(0xFFE2E8F0),
activeTitleColor =Color(0xFF92400E),
inactiveTitleColor =Color(0xFF94A3B8)
)
ParameterTypeDefaultDescription
circleSizeDp32.dpSize of step indicator circles
circleFontSizeTextUnit14.spFont size for numbers inside circles
titleFontSizeTextUnit14.spFont size for step labels
horizontalSpacingDp16.dpGap between circles and text labels
verticalSpacingDp4.dpSpacing around connector lines
connectorThicknessDp2.dpThickness of connector lines
borderWidthDp2.dpBorder width around the current step circle
animationDurationInt400Animation duration in milliseconds

2. Animated Stepper

A horizontal stepper with a repeating pulse ring on the current step for extra visual emphasis.

HorizontalAnimatedStepper

HorizontalAnimatedStepper(
modifier =Modifier.fillMaxWidth(),
steps =listOf("Cart", "Shipping", "Payment", "Confirm"),
currentStep =1,
activeColor =Color(0xFF10B981),
inactiveColor =Color(0xFFCBD5E1),
activeTitleColor =Color(0xFF065F46),
inactiveTitleColor =Color(0xFF94A3B8)
)
ParameterTypeDefaultDescription
circleSizeDp32.dpSize of step indicator circles
circleFontSizeTextUnit14.spFont size for numbers inside circles
titleFontSizeTextUnit12.spFont size for step labels
spacingDp6.dpGap between circle and label
connectorThicknessDp3.dpThickness of connector lines
animationDurationInt400Animation duration in milliseconds
enablePulseAnimationBooleantrueToggle the pulse ring on current step
pulseAnimationDurationInt1000Duration of one pulse cycle in milliseconds

3. Numbered Stepper

Outlined circles for inactive steps, filled + outer glow ring for the current step, checkmark for completed steps.

HorizontalNumberedStepper

HorizontalNumberedStepper(
modifier =Modifier.fillMaxWidth(),
steps =listOf("Details", "Review", "Payment", "Confirm"),
currentStep =1,
activeColor =Color(0xFF7C3AED),
inactiveColor =Color(0xFFCBD5E1),
activeTitleColor =Color(0xFF4C1D95),
inactiveTitleColor =Color(0xFF94A3B8)
)

VerticalNumberedStepper

VerticalNumberedStepper(
modifier =Modifier.fillMaxWidth().height(240.dp),
steps =listOf("Setup", "Configure", "Preview", "Launch"),
currentStep =1,
activeColor =Color(0xFF0EA5E9),
inactiveColor =Color(0xFFCBD5E1),
activeTitleColor =Color(0xFF0C4A6E),
inactiveTitleColor =Color(0xFF94A3B8)
)
ParameterTypeDefaultDescription
circleSizeDp32.dpSize of step indicator circles
circleFontSizeTextUnit14.spFont size for numbers inside circles
titleFontSizeTextUnit13.spFont size for step labels
connectorThicknessDp2.dpThickness of connector lines
outerRingWidthDp2.dpWidth of the outer glow ring on the current step
animationDurationInt400Animation duration in milliseconds

4. Icon Stepper

Per-step custom icons — outlined and tinted when inactive, white on filled background when active, checkmark when completed.

HorizontalIconStepper

HorizontalIconStepper(
modifier =Modifier.fillMaxWidth(),
steps =listOf("Profile", "Home", "Cart", "Done"),
icons =listOf(
Icons.Rounded.Person,
Icons.Rounded.Home,
Icons.Rounded.ShoppingCart,
Icons.Rounded.Star
),
currentStep =1,
activeColor =Color(0xFFF59E0B),
inactiveColor =Color(0xFFCBD5E1),
activeTitleColor =Color(0xFF78350F),
inactiveTitleColor =Color(0xFF94A3B8)
)

VerticalIconStepper

VerticalIconStepper(
modifier =Modifier.fillMaxWidth().height(240.dp),
steps =listOf("Account", "Address", "Wishlist", "Favourites"),
icons =listOf(
Icons.Rounded.Person,
Icons.Rounded.Home,
Icons.Rounded.Star,
Icons.Rounded.Favorite
),
currentStep =1,
activeColor =Color(0xFFEC4899),
inactiveColor =Color(0xFFCBD5E1),
activeTitleColor =Color(0xFF831843),
inactiveTitleColor =Color(0xFF94A3B8)
)
ParameterTypeDefaultDescription
iconsList<ImageVector>Custom icon for each step (must match steps length)
circleSizeDp32.dpSize of step indicator circles
iconSizeDp18.dpSize of the icon drawn inside the circle
titleFontSizeTextUnit13.spFont size for step labels
connectorThicknessDp2.dpThickness of connector lines
animationDurationInt400Animation duration in milliseconds

5. Rounded Stepper

Rounded-rectangle badge indicators instead of circles — configurable corner radius, not fully pill-shaped.

HorizontalRoundedStepper

HorizontalRoundedStepper(
modifier =Modifier.fillMaxWidth(),
steps =listOf("Symptoms", "History", "Rx", "Done"),
currentStep =1,
activeColor =Color(0xFF10B981),
inactiveColor =Color(0xFFCBD5E1),
activeTitleColor =Color(0xFF064E3B),
inactiveTitleColor =Color(0xFF94A3B8),
cornerRadius =10.dp
)

VerticalRoundedStepper

VerticalRoundedStepper(
modifier =Modifier.fillMaxWidth().height(260.dp),
steps =listOf("Intake", "Diagnosis", "Prescription", "Follow-up"),
currentStep =1,
activeColor =Color(0xFF6366F1),
inactiveColor =Color(0xFFCBD5E1),
activeTitleColor =Color(0xFF312E81),
inactiveTitleColor =Color(0xFF94A3B8),
cornerRadius =10.dp
)
ParameterTypeDefaultDescription
badgeWidthDp44.dpWidth of each badge indicator
badgeHeightDp32.dpHeight of each badge indicator
cornerRadiusDp10.dpCorner radius of the badge (0 = rectangle, high value = pill)
circleFontSizeTextUnit14.spFont size for numbers inside badges
titleFontSizeTextUnit13.spFont size for step labels
connectorThicknessDp2.dpThickness of connector lines
animationDurationInt400Animation duration in milliseconds

6. Progress Bar Stepper

A thick continuous bar with step dots on top — dots fill from left to right with half-fill on the current step.

HorizontalProgressBarStepper

HorizontalProgressBarStepper(
modifier =Modifier.fillMaxWidth(),
steps =listOf("Start", "Design", "Build", "Test", "Ship"),
currentStep =2,
activeColor =Color(0xFFEF4444),
inactiveColor =Color(0xFFCBD5E1),
activeTitleColor =Color(0xFF7F1D1D),
inactiveTitleColor =Color(0xFF94A3B8),
barThickness =6.dp
)

VerticalProgressBarStepper

VerticalProgressBarStepper(
modifier =Modifier.fillMaxWidth().height(300.dp),
steps =listOf("Order placed", "Processing", "Shipped", "Out for delivery", "Delivered"),
currentStep =2,
activeColor =Color(0xFF14B8A6),
inactiveColor =Color(0xFFCBD5E1),
activeTitleColor =Color(0xFF134E4A),
inactiveTitleColor =Color(0xFF94A3B8),
barThickness =6.dp
)
ParameterTypeDefaultDescription
dotSizeDp16.dpDiameter of each step dot
barThicknessDp4.dpThickness of the continuous progress bar
titleFontSizeTextUnit13.spFont size for step labels
animationDurationInt400Animation duration in milliseconds

7. Card Stepper

A vertical stepper with expandable cards showing a description for each step. Great for onboarding and order tracking.

VerticalCardStepper

VerticalCardStepper(
modifier =Modifier.fillMaxWidth(),
steps =listOf("Create Account", "Personal Info", "Preferences", "Verification", "All Set!"),
descriptions =listOf(
"Sign up with your email and create a password",
"Tell us your name and contact details",
"Choose your notification and display preferences",
"Verify your email address to continue",
"Your account is ready to use"
),
currentStep =1,
activeColor =Color(0xFF8B5CF6),
inactiveColor =Color(0xFF94A3B8),
activeCardBackgroundColor =Color(0xFFF5F3FF),
cardBackgroundColor =Color(0xFFFFFFFF)
)
ParameterTypeDefaultDescription
descriptionsList<String>Description shown inside each card
activeCardBackgroundColorColorBackground color of the active card
cardBackgroundColorColorBackground color of inactive cards
circleSizeDp32.dpSize of step indicator circles
circleFontSizeTextUnit15.spFont size for numbers inside circles
titleFontSizeTextUnit15.spFont size for step titles
descriptionFontSizeTextUnit12.spFont size for step descriptions
cardRadiusDp12.dpCorner radius for step cards
cardPaddingDp14.dpPadding inside step cards
cardSpacingDp8.dpSpacing between step cards
horizontalSpacingDp12.dpGap between circles and cards
connectorThicknessDp3.dpThickness of connector lines
accentBorderWidthDp4.dpWidth of the accent border on the active card
animationDurationInt400Animation duration in milliseconds

Contribution

Feel free to fork, star, or suggest improvements via issues and pull requests.


License

MIT License
Copyright (c) 2025 Muhammad Ali
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Author

Muhammad Ali

EmailPortfolioLinkedInGitHub

❤️ Created with love by Muhammad Ali

"Step into motion — guide your users one smooth step at a time."

About

A lightweight, customizable, and elegant stepper UI library for Jetpack Compose.

Topics

Resources

Stars

10 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages