Skip to content

Latest commit

 

History

History
54 lines (35 loc) · 1.43 KB

File metadata and controls

54 lines (35 loc) · 1.43 KB

Generic header

GOV.UK Design System generic header component

Tag helpers

Example

Generic header example

<govuk-generic-header home-page-url="https://my.service.gov.uk">
    <logo>
        My service
    </logo>
</govuk-generic-header>

Example with long tag names

Generic header with long tag names example

<govuk-generic-header home-page-url="https://my.service.gov.uk">
    <govuk-generic-header-logo>
        My service
    </govuk-generic-header-logo>
</govuk-generic-header>

API

<govuk-generic-header>

The content is the HTML to use after the logo.

Attribute Type Description
container-* Additional attributes to add to the generated container element.
home-page-url string The URL of the homepage link. If not specified, / will be used.

<logo> / <govuk-generic-header-logo>

The content is the HTML to use within the logo's link.

Must be inside a <govuk-generic-header> element.

Attribute Type Description
link-* Additional attributes to add to the generated homepage link element.