← All Components
<mth-session-list>
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
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>import '@methane-ui/auth/session-list';
import '@methane-ui/react';
export function Example() {
return <mth-session-list></mth-session-list>;
}<script setup lang="ts">
import '@methane-ui/auth/session-list';
</script>
<template>
<mth-session-list></mth-session-list>
</template>import { Component, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import '@methane-ui/auth/session-list';
import { MthSessionListDirective } from '@methane-ui/angular';
@Component({
standalone: true,
schemas: [CUSTOM_ELEMENTS_SCHEMA],
imports: [MthSessionListDirective],
template: `<mth-session-list></mth-session-list>`,
})
export class ExampleComponent {}<script lang="ts">
import '@methane-ui/auth/session-list';
import MthSessionList from '@methane-ui/svelte/MthSessionList.svelte';
</script>
<MthSessionList></MthSessionList>Properties & Attributes
| Property | Attribute | Type | Default | Description |
|---|---|---|---|---|
sessions | — | ReadonlyArray<unknown> | — | Active device sessions to display. |
heading | heading | string | "" | Optional custom heading override. |
allowRevokeCurrent | allow-revoke-current | boolean | false | Allows revoking the current active session directly. |
loading | loading | boolean | false | Disables revocation buttons while an async revocation request is in flight. |
disabled | disabled | boolean | false | Disables all interactive revocation buttons. |
Events
| Event | Detail Type | Description |
|---|---|---|
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
| Category | Requirement | Verified By |
|---|---|---|
| aria | All aria-* IDREFs resolve within the same DOM root (ADR-003). | scanSameRootAria |
| focus | Focus ownership matches focusModel="host". | 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(disabled), :state(loading). | Conformance suite |
| i18n | Routes 8 UI/ARIA strings through @methane-ui/core i18n catalog. | Locale context test |