Skip link component

Preserve

Hierarchy

  • GOVUKFrontendComponent
    • SkipLink

Constructors

Properties

Constructors

  • Parameters

    • $module: Element

      HTML element to use for skip link

    Returns SkipLink

    Throws

    when $module is not set or the wrong type

    Throws

    when $module.hash does not contain a hash

    Throws

    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.