← All Components
<mth-step>
Declarative step item used standalone or composed inside <mth-stepper>.
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-step>, or toggle Theme, Direction (LTR/RTL), or props above.
Multi-Framework Playground & Snippets
<script type="module" src="@methane-ui/ui/step"></script>
<mth-step status="upcoming" step-number="0">Example</mth-step>import '@methane-ui/ui/step';
import '@methane-ui/react';
export function Example() {
return <mth-step status="upcoming" step-number="0">Example</mth-step>;
}<script setup lang="ts">
import '@methane-ui/ui/step';
</script>
<template>
<mth-step status="upcoming" step-number="0">Example</mth-step>
</template>import { Component, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import '@methane-ui/ui/step';
import { MthStepDirective } from '@methane-ui/angular';
@Component({
standalone: true,
schemas: [CUSTOM_ELEMENTS_SCHEMA],
imports: [MthStepDirective],
template: `<mth-step status="upcoming" step-number="0">Example</mth-step>`,
})
export class ExampleComponent {}<script lang="ts">
import '@methane-ui/ui/step';
import MthStep from '@methane-ui/svelte/MthStep.svelte';
</script>
<MthStep status="upcoming" step-number="0">Example</MthStep>Properties & Attributes
| Property | Attribute | Type | Default | Description |
|---|---|---|---|---|
value | value | string | "" | Unique step identifier. |
label | label | string | "" | Step title displayed in the stepper header. |
description | description | string | "" | Optional concise helper description. |
status | status | 'upcoming' | 'current' | 'complete' | 'error' | "upcoming" | Visual/semantic step status (upcoming, current, complete, or error). |
stepNumber | step-number | number | 0 | 1-based display number shown in the step indicator. |
disabled | disabled | boolean | false | Prevents activating this 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="none". | lint-plugin & spec-compiler |
| contrast | Renders legible borders, focus outlines, and selection indicators under forced-colors: active. | Playwright forced-colors matrix |
| states | Exposes ElementInternals CustomStateSet flags: :state(complete), :state(current), :state(error), :state(disabled). | Conformance suite |
| i18n | Routes 4 UI/ARIA strings through @methane-ui/core i18n catalog. | Locale context test |