← All Components
<mth-sso-buttons>
Federated Single Sign-On provider button group with RovingFocusController navigation and per-provider loading state.
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-sso-buttons>, or toggle Theme, Direction (LTR/RTL), or props above.
Multi-Framework Playground & Snippets
<script type="module" src="@methane-ui/auth/sso-buttons"></script>
<mth-sso-buttons orientation="horizontal">Example</mth-sso-buttons>import '@methane-ui/auth/sso-buttons';
import '@methane-ui/react';
export function Example() {
return <mth-sso-buttons orientation="horizontal">Example</mth-sso-buttons>;
}<script setup lang="ts">
import '@methane-ui/auth/sso-buttons';
</script>
<template>
<mth-sso-buttons orientation="horizontal">Example</mth-sso-buttons>
</template>import { Component, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import '@methane-ui/auth/sso-buttons';
import { MthSsoButtonsDirective } from '@methane-ui/angular';
@Component({
standalone: true,
schemas: [CUSTOM_ELEMENTS_SCHEMA],
imports: [MthSsoButtonsDirective],
template: `<mth-sso-buttons orientation="horizontal">Example</mth-sso-buttons>`,
})
export class ExampleComponent {}<script lang="ts">
import '@methane-ui/auth/sso-buttons';
import MthSsoButtons from '@methane-ui/svelte/MthSsoButtons.svelte';
</script>
<MthSsoButtons orientation="horizontal">Example</MthSsoButtons>Properties & Attributes
| Property | Attribute | Type | Default | Description |
|---|---|---|---|---|
providers | — | unknown[] | — | Array of { id, label?, disabled? } SSO provider entries. |
loadingProvider | loading-provider | string | "" | ID of the provider currently authenticating. |
orientation | orientation | 'horizontal' | 'vertical' | "vertical" | Stack direction (vertical | horizontal). |
disabled | disabled | boolean | false | Disables all provider buttons. |
label | label | string | "" | Accessible group label. |
Events
| Event | Detail Type | Description |
|---|---|---|
mth-sso-select | { provider: string; label: string } | Fired when an enabled SSO provider button is activated. |
APG Keyboard Matrix
| Key | Direction | When | Expected Behavior |
|---|---|---|---|
| ArrowDown | both | vertical provider button focused | moves focus to next provider button |
| ArrowUp | both | vertical provider button focused | moves focus to previous provider button |
| Home | both | provider button focused | moves focus to first provider button |
| End | both | provider button focused | moves focus to last provider button |
Accessibility Checklist
| Category | Requirement | Verified By |
|---|---|---|
| aria | All aria-* IDREFs resolve within the same DOM root (ADR-003). | scanSameRootAria |
| focus | Focus ownership matches focusModel="none". | lint-plugin & spec-compiler |
| contrast | Renders legible borders, focus outlines, and selection indicators under forced-colors: active. | Playwright forced-colors matrix |
| keyboard | Implements all 4 APG keyboard transitions across LTR/RTL. | mth-sso-buttons.spec.test.ts |
| states | Exposes ElementInternals CustomStateSet flags: :state(disabled), :state(loading). | Conformance suite |
| i18n | Routes 2 UI/ARIA strings through @methane-ui/core i18n catalog. | Locale context test |