← All Components
<mth-skip-link>
Focus-revealed skip link for keyboard navigation to landmark targets.
When NOT to use: Do not use <mth-skip-link> for ordinary page navigation links; reserve it for keyboard bypass links to landmark regions.
Live Interactive Preview
Skip link destination region
Ready · interact with <mth-skip-link>, or toggle Theme, Direction (LTR/RTL), or props above.
Multi-Framework Playground & Snippets
<script type="module" src="@methane-ui/primitives"></script>
<mth-skip-link href="#main">Example</mth-skip-link>import '@methane-ui/primitives';
import '@methane-ui/react';
export function Example() {
return <mth-skip-link href="#main">Example</mth-skip-link>;
}<script setup lang="ts">
import '@methane-ui/primitives';
</script>
<template>
<mth-skip-link href="#main">Example</mth-skip-link>
</template>import { Component, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import '@methane-ui/primitives';
import { MthSkipLinkDirective } from '@methane-ui/angular';
@Component({
standalone: true,
schemas: [CUSTOM_ELEMENTS_SCHEMA],
imports: [MthSkipLinkDirective],
template: `<mth-skip-link href="#main">Example</mth-skip-link>`,
})
export class ExampleComponent {}<script lang="ts">
import '@methane-ui/primitives';
import MthSkipLink from '@methane-ui/svelte/MthSkipLink.svelte';
</script>
<MthSkipLink href="#main">Example</MthSkipLink>Properties & Attributes
| Property | Attribute | Type | Default | Description |
|---|---|---|---|---|
href | href | string | "#main" | Target hash fragment or URL for the skip link anchor. |
APG Keyboard Matrix
| Key | Direction | When | Expected Behavior |
|---|---|---|---|
| Enter | both | focused | Jumps focus to target landmark element |
Accessibility Checklist
| Category | Requirement | Verified By |
|---|---|---|
| aria | All aria-* IDREFs resolve within the same DOM root (ADR-003). | scanSameRootAria |
| focus | delegatesFocus: true with zero host internals.role (ADR-014). | lint-plugin & spec-compiler |
| contrast | Renders legible borders, focus outlines, and selection indicators under forced-colors: active. | Playwright forced-colors matrix |
| keyboard | Implements all 1 APG keyboard transitions across LTR/RTL. | mth-skip-link.spec.test.ts |
| i18n | Routes 1 UI/ARIA strings through @methane-ui/core i18n catalog. | Locale context test |