← All Components
<mth-checkout-steps>
Multi-step checkout progress coordinator supporting linear completion gating, vertical/horizontal layouts, and RTL roving focus.
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 · interact with <mth-checkout-steps>, or toggle Theme, Direction (LTR/RTL), or props above.
Multi-Framework Playground & Snippets
<script type="module" src="@methane-ui/commerce/checkout-steps"></script>
<mth-checkout-steps orientation="horizontal" linear></mth-checkout-steps>import '@methane-ui/commerce/checkout-steps';
import '@methane-ui/react';
export function Example() {
return <mth-checkout-steps orientation="horizontal" linear></mth-checkout-steps>;
}<script setup lang="ts">
import '@methane-ui/commerce/checkout-steps';
</script>
<template>
<mth-checkout-steps orientation="horizontal" linear></mth-checkout-steps>
</template>import { Component, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import '@methane-ui/commerce/checkout-steps';
import { MthCheckoutStepsDirective } from '@methane-ui/angular';
@Component({
standalone: true,
schemas: [CUSTOM_ELEMENTS_SCHEMA],
imports: [MthCheckoutStepsDirective],
template: `<mth-checkout-steps orientation="horizontal" linear></mth-checkout-steps>`,
})
export class ExampleComponent {}<script lang="ts">
import '@methane-ui/commerce/checkout-steps';
import MthCheckoutSteps from '@methane-ui/svelte/MthCheckoutSteps.svelte';
</script>
<MthCheckoutSteps orientation="horizontal" linear></MthCheckoutSteps>Properties & Attributes
| Property | Attribute | Type | Default | Description |
|---|---|---|---|---|
steps | — | ReadonlyArray<unknown> | — | Ordered list of CheckoutStep items (shipping, delivery, payment, review). |
activeStep | active-step | string | "" | Currently active step ID. |
orientation | orientation | 'horizontal' | 'vertical' | "horizontal" | Step list orientation: horizontal or vertical. |
linear | linear | boolean | true | When true, prevents activating steps ahead of incomplete preceding steps. |
label | label | string | "" | Accessible navigation label overriding localized default. |
Events
| Event | Detail Type | Description |
|---|---|---|
mth-step-change | { stepId: string; index: number } | Emitted event mth-step-change. |
mth-step-complete | { stepId: string } | Emitted event mth-step-complete. |
APG Keyboard Matrix
| Key | Direction | When | Expected Behavior |
|---|---|---|---|
| ArrowRight | both | horizontal | Move focus to next step (previous in RTL). |
| ArrowLeft | both | horizontal | Move focus to previous step (next in RTL). |
| ArrowDown | both | vertical | Move focus to next step in vertical orientation. |
| ArrowUp | both | vertical | Move focus to previous step in vertical orientation. |
| Home | both | focused | Focus first step. |
| End | both | focused | Focus last step. |
| Enter | both | step-button focused | Activate unlocked step. |
Accessibility Checklist
| Category | Requirement | Verified By |
|---|---|---|
| aria | All aria-* IDREFs resolve within the same DOM root (ADR-003). | scanSameRootAria |
| focus | Focus ownership matches focusModel="host". | lint-plugin & spec-compiler |
| contrast | Renders legible borders, focus outlines, and selection indicators under forced-colors: active. | Playwright forced-colors matrix |
| keyboard | Implements all 7 APG keyboard transitions across LTR/RTL. | mth-checkout-steps.spec.test.ts |
| states | Exposes ElementInternals CustomStateSet flags: :state(vertical), :state(linear). | Conformance suite |
| i18n | Routes 5 UI/ARIA strings through @methane-ui/core i18n catalog. | Locale context test |