Skip link component

Hierarchy

  • GOVUKFrontendComponent
    • SkipLink

Constructors

Properties

Constructors

  • Parameters

    • $module: Element

      HTML element to use for skip link

    Returns SkipLink

    when $module is not set or the wrong type

    when $module.hash does not contain a hash

    when the linked element is missing or the wrong type

Properties

$module: HTMLAnchorElement
moduleName: string = 'govuk-skip-link'

Name for the component used when initialising using data-module attributes.