← All Components
<mth-form-wizard>
Multi-step form wizard coordinating Light-DOM step panels via SelectionController and SlotCollectionController with per-step validation gates.
When NOT to use: Use a lightweight @methane-ui/css layout class instead of a custom element when static CSS suffices.
Live Interactive Preview
Ready to provision workspace with Declarative Shadow DOM.
Ready · interact with <mth-form-wizard>, or toggle Theme, Direction (LTR/RTL), or props above.
Multi-Framework Playground & Snippets
<script type="module" src="@methane-ui/ui/form-wizard"></script>
<mth-form-wizard active-step="0" linear></mth-form-wizard>import '@methane-ui/ui/form-wizard';
import '@methane-ui/react';
export function Example() {
return <mth-form-wizard active-step="0" linear></mth-form-wizard>;
}<script setup lang="ts">
import '@methane-ui/ui/form-wizard';
</script>
<template>
<mth-form-wizard active-step="0" linear></mth-form-wizard>
</template>import { Component, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import '@methane-ui/ui/form-wizard';
import { MthFormWizardDirective } from '@methane-ui/angular';
@Component({
standalone: true,
schemas: [CUSTOM_ELEMENTS_SCHEMA],
imports: [MthFormWizardDirective],
template: `<mth-form-wizard active-step="0" linear></mth-form-wizard>`,
})
export class ExampleComponent {}<script lang="ts">
import '@methane-ui/ui/form-wizard';
import MthFormWizard from '@methane-ui/svelte/MthFormWizard.svelte';
</script>
<MthFormWizard active-step="0" linear></MthFormWizard>Properties & Attributes
| Property | Attribute | Type | Default | Description |
|---|---|---|---|---|
activeStep | active-step | number | 0 | Zero-based index of the currently active step. |
step | step | string | "" | Identifier (data-step or id) of the currently selected step. |
label | label | string | "" | Accessible region label for the wizard. |
linear | linear | boolean | true | When true, prevents skipping ahead past steps that have not been reached. |
validateOnNext | validate-on-next | boolean | true | Runs constraint validity checks on active step controls before advancing. |
backLabel | back-label | string | "" | Custom Back button label. |
nextLabel | next-label | string | "" | Custom Next button label. |
submitLabel | submit-label | string | "" | Custom Finish button label on the final step. |
Events
| Event | Detail Type | Description |
|---|---|---|
mth-step-change | { index: number; previousIndex: number; step: string } | Cancelable event emitted before transitioning between steps. |
mth-complete | { steps: number } | Emitted when the final step passes validation and completes. |
APG Keyboard Matrix
| Key | Direction | When | Expected Behavior |
|---|---|---|---|
| Enter | both | next/submit button focused | validates current step and advances or completes wizard |
Accessibility Checklist
| Category | Requirement | Verified By |
|---|---|---|
| aria | All aria-* IDREFs resolve within the same DOM root (ADR-003). | scanSameRootAria |
| focus | Focus ownership matches focusModel="none". | lint-plugin & spec-compiler |
| contrast | Renders legible borders, focus outlines, and selection indicators under forced-colors: active. | Playwright forced-colors matrix |
| keyboard | Implements all 1 APG keyboard transitions across LTR/RTL. | mth-form-wizard.spec.test.ts |
| states | Exposes ElementInternals CustomStateSet flags: :state(completed). | Conformance suite |
| i18n | Routes 8 UI/ARIA strings through @methane-ui/core i18n catalog. | Locale context test |