/** * Auto-generated skip navigation link utility. * * Creates a visually-hidden (but keyboard-focusable) "Skip to content" * link that becomes visible on focus, letting keyboard users bypass * repeated navigation. * * @module bquery/a11y */ import type { SkipLinkHandle, SkipLinkOptions } from './types'; /** * Creates a skip navigation link that jumps to the specified target. * * The link is visually hidden by default and becomes visible when * it receives keyboard focus. This follows the WCAG 2.4.1 "Bypass Blocks" * success criterion. * * @param targetSelector - CSS selector for the main content area (e.g. `'#main'`, `'main'`) * @param options - Configuration options * @returns A handle with `destroy()` method and reference to the created element * * @example * ```ts * import { skipLink } from '@bquery/bquery/a11y'; * * // Creates a "Skip to main content" link pointing to
* const handle = skipLink('#main-content'); * * // Custom text * const handle2 = skipLink('#content', { text: 'Jump to content' }); * * // Remove when no longer needed * handle.destroy(); * ``` */ export declare const skipLink: (targetSelector: string, options?: SkipLinkOptions) => SkipLinkHandle; //# sourceMappingURL=skip-link.d.ts.map