← All Components
<mth-settings-shell>
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
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>import '@methane-ui/admin/settings-shell';
import '@methane-ui/react';
export function Example() {
return <mth-settings-shell>Example</mth-settings-shell>;
}<script setup lang="ts">
import '@methane-ui/admin/settings-shell';
</script>
<template>
<mth-settings-shell>Example</mth-settings-shell>
</template>import { Component, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import '@methane-ui/admin/settings-shell';
import { MthSettingsShellDirective } from '@methane-ui/angular';
@Component({
standalone: true,
schemas: [CUSTOM_ELEMENTS_SCHEMA],
imports: [MthSettingsShellDirective],
template: `<mth-settings-shell>Example</mth-settings-shell>`,
})
export class ExampleComponent {}<script lang="ts">
import '@methane-ui/admin/settings-shell';
import MthSettingsShell from '@methane-ui/svelte/MthSettingsShell.svelte';
</script>
<MthSettingsShell>Example</MthSettingsShell>Properties & Attributes
| Property | Attribute | Type | Default | Description |
|---|---|---|---|---|
sections | — | ReadonlyArray<unknown> | — | Section definitions displayed in the navigation rail. |
activeSectionId | active-section-id | string | "" | Currently active section ID. |
dirty | dirty | boolean | false | Reveals the unsaved-changes save/discard action bar. |
saving | saving | boolean | false | Indicates an in-flight save operation. |
Events
| Event | Detail Type | Description |
|---|---|---|
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
| Key | Direction | When | Expected Behavior |
|---|---|---|---|
| ArrowDown | both | section rail has focus | moves focus to next settings section |
| ArrowUp | both | section rail has focus | moves focus to previous settings section |
Accessibility Checklist
| Category | Requirement | Verified By |
|---|---|---|
| aria | All aria-* IDREFs resolve within the same DOM root (ADR-003). | scanSameRootAria |
| focus | delegatesFocus: true with zero host internals.role (ADR-014). | lint-plugin & spec-compiler |
| contrast | Renders legible borders, focus outlines, and selection indicators under forced-colors: active. | Playwright forced-colors matrix |
| keyboard | Implements all 2 APG keyboard transitions across LTR/RTL. | mth-settings-shell.spec.test.ts |
| states | Exposes ElementInternals CustomStateSet flags: :state(dirty), :state(saving). | Conformance suite |
| i18n | Routes 6 UI/ARIA strings through @methane-ui/core i18n catalog. | Locale context test |