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

<mth-settings-shell>

@methane-ui/admin~7.9 KB brotli (kit + Lit)~2.0 KB marginal

Admin settings shell (<mth-settings-shell>) combining a roving-focus section rail, active content pane, and dirty-state save/discard bar.

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-settings-shell> (@methane-ui/admin)
Workspace: Methane Cloud
Workspace Profile

Manage your organization slug, default timezone (UTC), and telemetry retention window.

Ready · interact with <mth-settings-shell>, or toggle Theme, Direction (LTR/RTL), or props above.

Multi-Framework Playground & Snippets

<script type="module" src="@methane-ui/admin/settings-shell"></script>
<mth-settings-shell>Example</mth-settings-shell>

Properties & Attributes

PropertyAttributeTypeDefaultDescription
sections—ReadonlyArray<unknown>—Section definitions displayed in the navigation rail.
activeSectionIdactive-section-idstring""Currently active section ID.
dirtydirtybooleanfalseReveals the unsaved-changes save/discard action bar.
savingsavingbooleanfalseIndicates an in-flight save operation.

Events

EventDetail TypeDescription
mth-section-change{ id: string }Emitted when the user selects another settings section.
mth-save{ activeSectionId: string }Emitted when Save changes is activated.
mth-discard{ activeSectionId: string }Emitted when Discard is activated.

APG Keyboard Matrix

KeyDirectionWhenExpected Behavior
ArrowDownbothsection rail has focusmoves focus to next settings section
ArrowUpbothsection rail has focusmoves focus to previous settings section

Accessibility Checklist

CategoryRequirementVerified By
ariaAll aria-* IDREFs resolve within the same DOM root (ADR-003).scanSameRootAria
focusdelegatesFocus: true with zero host internals.role (ADR-014).lint-plugin & spec-compiler
contrastRenders legible borders, focus outlines, and selection indicators under forced-colors: active.Playwright forced-colors matrix
keyboardImplements all 2 APG keyboard transitions across LTR/RTL.mth-settings-shell.spec.test.ts
statesExposes ElementInternals CustomStateSet flags: :state(dirty), :state(saving).Conformance suite
i18nRoutes 6 UI/ARIA strings through @methane-ui/core i18n catalog.Locale context test