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

<mth-sso-buttons>

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

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

Interactive StageLive Custom Element · <mth-sso-buttons> (@methane-ui/auth)
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>

Properties & Attributes

PropertyAttributeTypeDefaultDescription
providers—unknown[]—Array of { id, label?, disabled? } SSO provider entries.
loadingProviderloading-providerstring""ID of the provider currently authenticating.
orientationorientation'horizontal' | 'vertical'"vertical"Stack direction (vertical | horizontal).
disableddisabledbooleanfalseDisables all provider buttons.
labellabelstring""Accessible group label.

Events

EventDetail TypeDescription
mth-sso-select{ provider: string; label: string }Fired when an enabled SSO provider button is activated.

APG Keyboard Matrix

KeyDirectionWhenExpected Behavior
ArrowDownbothvertical provider button focusedmoves focus to next provider button
ArrowUpbothvertical provider button focusedmoves focus to previous provider button
Homebothprovider button focusedmoves focus to first provider button
Endbothprovider button focusedmoves focus to last provider button

Accessibility Checklist

CategoryRequirementVerified By
ariaAll aria-* IDREFs resolve within the same DOM root (ADR-003).scanSameRootAria
focusFocus ownership matches focusModel="none".lint-plugin & spec-compiler
contrastRenders legible borders, focus outlines, and selection indicators under forced-colors: active.Playwright forced-colors matrix
keyboardImplements all 4 APG keyboard transitions across LTR/RTL.mth-sso-buttons.spec.test.ts
statesExposes ElementInternals CustomStateSet flags: :state(disabled), :state(loading).Conformance suite
i18nRoutes 2 UI/ARIA strings through @methane-ui/core i18n catalog.Locale context test