Skip to main content
239

Search Lumen

Find components, APIs, guides, and recipes.

GitHub
Themes
Android docs
LayoutAndroid

Steps

Show numbered instructions with titles and bodies.

Public APILumenStepsAndroid / Compose

Native example

Use Steps

Use it for setup guides. Use a stepper for a stateful workflow.

Steps rendered in the Android phone emulator Lumen playground
Captured exampleAndroid phone emulatorView dark appearance
kotlin
import androidx.compose.runtime.*
import com.santi020k.lumen.*

@Composable
fun SetupSteps() {
    LumenSteps(
        steps = listOf(
            LumenStepsItem("Install the package", "Add com.santi020k:lumen-compose to your app module."),
            LumenStepsItem("Wrap your app", "Call LumenTheme at the root of your content."),
            LumenStepsItem("Compose your screens", "Build every screen from Lumen components.")
        ),
        layout = LumenStepsLayout.Rail
    )
}
Android
An ordered setup guide with headings, body text, and a rail joining each numbered marker.

Reference

Public API

The primary shared and platform-specific options exposed by LumenSteps.

APIValues or typeDefaultDescription
steps / start / layoutitems / first number / list or railrequired / 1 / listUse it for setup guides.

Native behavior

Design and accessibility

When to use it

Use it for setup guides. Use a stepper for a stateful workflow.

Accessibility

Ordered list; markers are decorative and titles are headings.

Shared component

Available on other platforms

React NativeApple / SwiftUI Web
Android docsCompose module