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

<mth-radio>

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

Accessible radio option designed for composition inside <mth-radio-group>.

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-radio> (@methane-ui/ui)
Stable (Target)Release CandidateCanary
Ready · interact with <mth-radio>, or toggle Theme, Direction (LTR/RTL), or props above.

Multi-Framework Playground & Snippets

<script type="module" src="@methane-ui/ui/radio"></script>
<mth-radio>Example</mth-radio>

Properties & Attributes

PropertyAttributeTypeDefaultDescription
valuevaluestring""Value submitted by the parent radio group when selected.
checkedcheckedbooleanfalseWhether this radio option is currently selected.
disableddisabledbooleanfalseDisables this individual radio option.
labellabelstring""Fallback label text when default slot is empty.

Events

EventDetail TypeDescription
mth-radio-select{ value: string }Fired when user clicks or presses Space on the radio option.

APG Keyboard Matrix

KeyDirectionWhenExpected Behavior
bothfocused and not disabledemits selection intent for this radio option

Accessibility Checklist

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