Methane@methane-ui/*
CSS LayoutsComponentsSkillsTheme BuilderGitHub
← All Components

<mth-tour-step>

@methane-ui/ui~6.8 KB brotli (cold + Lit)~1.4 KB marginal

Declarative guided-tour step item consumed by <mth-tour> or displayed standalone, pairing a target CSS selector with heading, placement, and slotted instructions.

When NOT to use: Use a lightweight @methane-ui/css layout class instead of a custom element when static CSS suffices.

Live Interactive Preview

Interactive StageLive Custom Element · <mth-tour-step> (@methane-ui/ui)
Declarative step definition used inside <mth-tour> with anchor target and media slot.
Ready · interact with <mth-tour-step>, or toggle Theme, Direction (LTR/RTL), or props above.

Multi-Framework Playground & Snippets

<script type="module" src="@methane-ui/ui/tour-step"></script>
<mth-tour-step placement="top">Example</mth-tour-step>

Properties & Attributes

PropertyAttributeTypeDefaultDescription
stepIdstep-idstring""Stable identifier for the step.
targettargetstring""CSS selector of the DOM element anchored by this tour step.
headingheadingstring""Heading displayed in the tour popover for this step.
placementplacement'top' | 'bottom' | 'left' | 'right' | 'top-start' | 'top-end' | 'bottom-start' | 'bottom-end' | 'left-start' | 'left-end' | 'right-start' | 'right-end'"bottom"Preferred popover placement relative to the target element.
activeactivebooleanfalseMarks whether this step is currently active.

Events

EventDetail TypeDescription
mth-step-enter{ stepId: string }Fired when this step becomes active.

Accessibility Checklist

CategoryRequirementVerified By
ariaAll aria-* IDREFs resolve within the same DOM root (ADR-003).scanSameRootAria
focusFocus ownership matches focusModel="none".lint-plugin & spec-compiler
contrastRenders legible borders, focus outlines, and selection indicators under forced-colors: active.Playwright forced-colors matrix
statesExposes ElementInternals CustomStateSet flags: :state(active).Conformance suite
i18nRoutes 1 UI/ARIA strings through @methane-ui/core i18n catalog.Locale context test