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

<mth-session-list>

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

Active authenticated session list displaying device metadata, current-session badge, and single/bulk revocation actions.

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-session-list> (@methane-ui/auth)
Ready · interact with <mth-session-list>, or toggle Theme, Direction (LTR/RTL), or props above.

Multi-Framework Playground & Snippets

<script type="module" src="@methane-ui/auth/session-list"></script>
<mth-session-list></mth-session-list>

Properties & Attributes

PropertyAttributeTypeDefaultDescription
sessions—ReadonlyArray<unknown>—Active device sessions to display.
headingheadingstring""Optional custom heading override.
allowRevokeCurrentallow-revoke-currentbooleanfalseAllows revoking the current active session directly.
loadingloadingbooleanfalseDisables revocation buttons while an async revocation request is in flight.
disableddisabledbooleanfalseDisables all interactive revocation buttons.

Events

EventDetail TypeDescription
mth-revoke{ id: string; session: unknown }Emitted when a single session revoke button is clicked.
mth-revoke-others{ count: number; sessionIds: ReadonlyArray<string> }Emitted when bulk sign-out of non-current sessions is requested.

Accessibility Checklist

CategoryRequirementVerified By
ariaAll aria-* IDREFs resolve within the same DOM root (ADR-003).scanSameRootAria
focusFocus ownership matches focusModel="host".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(disabled), :state(loading).Conformance suite
i18nRoutes 8 UI/ARIA strings through @methane-ui/core i18n catalog.Locale context test