Package-level declarations

Types

Link copied to clipboard

Navigation direction used during step transitions and validation.

Link copied to clipboard

Orientation for the stepper component layout.

Link copied to clipboard

Observable state for a KStepper.

Link copied to clipboard

Represents the current visual state of an individual step indicator.

Functions

Link copied to clipboard
fun KStepper(state: KStepperState, modifier: Modifier = Modifier, orientation: KStepperOrientation = KStepperOrientation.Horizontal, disabled: Boolean = false, nonInteractive: Boolean = false, content: @Composable ColumnScope.() -> Unit)

Shadcn/ui-style Stepper root — mirrors Stepper from stepper.tsx.

Link copied to clipboard
fun KStepperContent(value: String, modifier: Modifier = Modifier, forceMount: Boolean = false, content: @Composable BoxScope.() -> Unit)

Panel shown only when value is the active step. Pass forceMount = true to always render (hidden via alpha). Mirrors StepperContent.

Link copied to clipboard
fun KStepperDescription(modifier: Modifier = Modifier, content: @Composable () -> Unit)

Step description text — mirrors StepperDescription.

Link copied to clipboard
fun KStepperIndicator(modifier: Modifier = Modifier, content: @Composable (KStepState) -> Unit? = null)

Numbered / checkmark bubble — mirrors StepperIndicator.

Link copied to clipboard
fun RowScope.KStepperItem(value: String, modifier: Modifier = Modifier, completed: Boolean? = null, disabled: Boolean = false, content: @Composable RowScope.() -> Unit)

Container for one step — mirrors StepperItem.

Link copied to clipboard
fun KStepperList(modifier: Modifier = Modifier, content: @Composable RowScope.() -> Unit)

Horizontal or vertical list of KStepperItems. Mirrors StepperList.

Link copied to clipboard
fun KStepperNext(content: @Composable (onClick: () -> Unit) -> Unit)

Navigates to the next step (runs validation if configured). content receives an onClick lambda — wire it to your button. Mirrors StepperNext.

Link copied to clipboard
fun KStepperPrev(content: @Composable (onClick: () -> Unit) -> Unit)

Navigates to the previous step. content receives an onClick lambda — wire it to your button. Mirrors StepperPrev.

Link copied to clipboard
fun RowScope.KStepperSeparator(modifier: Modifier = Modifier)

Connector line between steps — mirrors StepperSeparator. Hidden automatically on the last step.

Link copied to clipboard
fun KStepperTitle(modifier: Modifier = Modifier, content: @Composable () -> Unit)

Step title text — mirrors StepperTitle.

Link copied to clipboard
fun KStepperTrigger(modifier: Modifier = Modifier, hasLabel: Boolean = false, content: @Composable RowScope.() -> Unit)

Tappable trigger for a step — mirrors StepperTrigger.

Link copied to clipboard
fun rememberKStepperState(steps: List<String>, defaultValue: String = steps.firstOrNull() ?: "", value: String? = null, onValueChange: (String) -> Unit = {}, onValidate: suspend (value: String, direction: KNavigationDirection) -> Boolean? = null): KStepperState

Creates and remembers a KStepperState.

Link copied to clipboard

Reads the nearest KStepperState — mirrors useStepper from stepper.tsx.