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

<mth-visually-hidden>

@methane-ui/primitives~3.2 KB brotli (primitives + UIElement)~0.9 KB marginal

Screen-reader-only Light-DOM wrapper using CSS logical properties.

When NOT to use: Do not use <mth-visually-hidden> on interactive elements that must stay visible when focused; use <mth-skip-link> or native focusable controls.

Live Interactive Preview

Interactive StageLive Custom Element · <mth-visually-hidden> (@methane-ui/primitives)
★ BookmarkSave Methane component documentation bookmark
Ready · interact with <mth-visually-hidden>, or toggle Theme, Direction (LTR/RTL), or props above.

Multi-Framework Playground & Snippets

<script type="module" src="@methane-ui/primitives"></script>
<mth-visually-hidden>Example</mth-visually-hidden>

Properties & Attributes

PropertyAttributeTypeDefaultDescription

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