Skip to content

WizardDialog

@Composable



fun ModalScope.WizardDialog(
    pages: List<WizardPage>, 
    state: WizardState = rememberWizardState(), 
    contentWidth: Int = DEFAULT_CONTENT_WIDTH, 
    contentHeight: Int? = null, 
    backText: Component = Component.literal("Back"), 
    cancelText: Component = Component.literal("Cancel"), 
    nextText: Component = Component.literal("Next"), 
    finishText: Component = Component.literal("Finish"), 
    transitionSpec: AnimationSpec = DEFAULT_SLIDE_SPEC, 
    onCancel: () -> Unit = {}, 
    onFinish: () -> Unit = {}
)

A Wizard in a modal's Surface, dismissing the modal on cancel and after finishing.

The counterpart to ConfirmDialog for a flow that needs more than one step. Push it with net.kernelpanicsoft.archie.gui.layer.LayerStackManager.wizardDialog.