When autocomplete results are available use up and down arrows to review and enter to select. Touch device users, explore by touch or with swipe gestures.
<divclass="govuk-phase-banner"><pclass="govuk-phase-banner__content"><strongclass="govuk-tag govuk-phase-banner__content__tag">
alpha
</strong><spanclass="govuk-phase-banner__text">
This is a new service – your <aclass="govuk-link"href="#">feedback</a> will help us to improve it.
</span></p></div>
Use options to customise the appearance, content and behaviour of a component when using a macro, for example, changing the text.
Some options are required for the macro to work; these are marked as "Required" in the option description.
If you're using Nunjucks macros in production with "html" options, or ones ending with "html", you must sanitise the HTML to protect against cross-site scripting exploits.
Primary options
Name
Type
Description
text
string
Required.
If html is set, this is not required. Text to use within the phase banner. If html is provided, the text argument will be ignored.
html
string
Required.
If text is set, this is not required. HTML to use within the phase banner. If html is provided, the text argument will be ignored.
HTML attributes (for example data attributes) to add to the phase banner container.
{% from"govuk/components/phase-banner/macro.njk"import govukPhaseBanner %}
{{ govukPhaseBanner({
tag: {
text: "alpha"
},
html: 'This is a new service – your <a class="govuk-link" href="#">feedback</a> will help us to improve it.'
}) }}
When to use this component
You must use the phase banner component if your service is still being developed and is hosted on the service.gov.uk subdomain.
Use an alpha banner when your service is in alpha, and a beta banner if your service is in private or public beta.
How it works
Your banner must be directly under the black GOV.UK header and colour bar.
There are 2 ways to use the phase banner component. You can use HTML or, if you are using Nunjucks or the GOV.UK Prototype Kit, you can use the Nunjucks macro.
<divclass="govuk-phase-banner"><pclass="govuk-phase-banner__content"><strongclass="govuk-tag govuk-phase-banner__content__tag">
alpha
</strong><spanclass="govuk-phase-banner__text">
This is a new service – your <aclass="govuk-link"href="#">feedback</a> will help us to improve it.
</span></p></div>
Use options to customise the appearance, content and behaviour of a component when using a macro, for example, changing the text.
Some options are required for the macro to work; these are marked as "Required" in the option description.
If you're using Nunjucks macros in production with "html" options, or ones ending with "html", you must sanitise the HTML to protect against cross-site scripting exploits.
Primary options
Name
Type
Description
text
string
Required.
If html is set, this is not required. Text to use within the phase banner. If html is provided, the text argument will be ignored.
html
string
Required.
If text is set, this is not required. HTML to use within the phase banner. If html is provided, the text argument will be ignored.
HTML attributes (for example data attributes) to add to the phase banner container.
{% from"govuk/components/phase-banner/macro.njk"import govukPhaseBanner %}
{{ govukPhaseBanner({
tag: {
text: "alpha"
},
html: 'This is a new service – your <a class="govuk-link" href="#">feedback</a> will help us to improve it.'
}) }}
<divclass="govuk-phase-banner"><pclass="govuk-phase-banner__content"><strongclass="govuk-tag govuk-phase-banner__content__tag">
beta
</strong><spanclass="govuk-phase-banner__text">
This is a new service – your <aclass="govuk-link"href="#">feedback</a> will help us to improve it.
</span></p></div>
Use options to customise the appearance, content and behaviour of a component when using a macro, for example, changing the text.
Some options are required for the macro to work; these are marked as "Required" in the option description.
If you're using Nunjucks macros in production with "html" options, or ones ending with "html", you must sanitise the HTML to protect against cross-site scripting exploits.
Primary options
Name
Type
Description
text
string
Required.
If html is set, this is not required. Text to use within the phase banner. If html is provided, the text argument will be ignored.
html
string
Required.
If text is set, this is not required. HTML to use within the phase banner. If html is provided, the text argument will be ignored.
HTML attributes (for example data attributes) to add to the phase banner container.
{% from"govuk/components/phase-banner/macro.njk"import govukPhaseBanner %}
{{ govukPhaseBanner({
tag: {
text: "beta"
},
html: 'This is a new service – your <a class="govuk-link" href="#">feedback</a> will help us to improve it.'
}) }}
Add a feedback link
Use a ‘feedback’ link to collect on-page feedback about your service. This can open an email or take the user to a dedicated page or form. Whatever option you use, make sure that users do not lose their place in the service and can return to the page they were on.