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

<mth-fieldset>

@methane-ui/ui~9.0 KB brotli (cold + Lit)~2.6 KB marginal

Semantic form grouping container rendering a shadow <fieldset> and <legend> with FormContext disabled propagation.

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-fieldset> (@methane-ui/ui)
Release status alertsWeekly bundle budget digest
Ready · interact with <mth-fieldset>, or toggle Theme, Direction (LTR/RTL), or props above.

Multi-Framework Playground & Snippets

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

Properties & Attributes

PropertyAttributeTypeDefaultDescription
legendlegendstring""Text displayed inside the fieldset <legend>.
hinthintstring""Supplementary helper text for the group.
errorerrorstring""Group-level validation error message.
disableddisabledbooleanfalseDisables all enclosed form controls via shadow fieldset and FormContext.

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
statesExposes ElementInternals CustomStateSet flags: :state(disabled), :state(invalid).Conformance suite
i18nRoutes 1 UI/ARIA strings through @methane-ui/core i18n catalog.Locale context test